From b1609bd71aea298347877518eedc33bcf0915fde Mon Sep 17 00:00:00 2001 From: Cory Slep Date: Wed, 13 Jun 2018 22:01:53 +0200 Subject: [PATCH] Generate streams package to multiple files --- streams/gen_accept.go | 2452 + streams/gen_activity.go | 2452 + streams/gen_add.go | 2452 + streams/gen_announce.go | 2452 + streams/gen_application.go | 2093 + streams/gen_arrive.go | 2400 + streams/gen_article.go | 2093 + streams/gen_audio.go | 2093 + streams/gen_block.go | 2452 + streams/gen_collection.go | 2306 + streams/gen_collectionpage.go | 2420 + streams/gen_create.go | 2452 + streams/gen_delete.go | 2452 + streams/gen_dislike.go | 2452 + streams/gen_document.go | 2093 + streams/gen_event.go | 2093 + streams/gen_flag.go | 2452 + streams/gen_follow.go | 2452 + streams/gen_group.go | 2093 + streams/gen_ignore.go | 2452 + streams/gen_image.go | 2161 + streams/gen_intransitiveactivity.go | 2400 + streams/gen_invite.go | 2452 + streams/gen_join.go | 2452 + streams/gen_leave.go | 2452 + streams/gen_like.go | 2452 + streams/gen_link.go | 581 + streams/gen_listen.go | 2452 + streams/gen_mention.go | 581 + streams/gen_move.go | 2452 + streams/gen_note.go | 2093 + streams/gen_object.go | 2093 + streams/gen_offer.go | 2452 + streams/gen_orderedcollection.go | 2306 + streams/gen_orderedcollectionpage.go | 2454 + streams/gen_organization.go | 2093 + streams/gen_page.go | 2093 + streams/gen_person.go | 2093 + streams/gen_place.go | 2263 + streams/gen_profile.go | 2127 + streams/gen_question.go | 2594 + streams/gen_read.go | 2452 + streams/gen_reject.go | 2452 + streams/gen_relationship.go | 2226 + streams/gen_remove.go | 2452 + streams/gen_service.go | 2093 + streams/gen_streams.go | 3049 + streams/gen_tentativeaccept.go | 2452 + streams/gen_tentativereject.go | 2452 + streams/gen_tombstone.go | 2183 + streams/gen_travel.go | 2400 + streams/gen_undo.go | 2452 + streams/gen_update.go | 2452 + streams/gen_video.go | 2093 + streams/gen_view.go | 2452 + streams/streams.go | 124984 ------------------------ tools/streams/gen/as.go | 47 +- tools/streams/main.go | 10 +- tools/streams/streams | Bin 0 -> 3366304 bytes 59 files changed, 125460 insertions(+), 124993 deletions(-) create mode 100644 streams/gen_accept.go create mode 100644 streams/gen_activity.go create mode 100644 streams/gen_add.go create mode 100644 streams/gen_announce.go create mode 100644 streams/gen_application.go create mode 100644 streams/gen_arrive.go create mode 100644 streams/gen_article.go create mode 100644 streams/gen_audio.go create mode 100644 streams/gen_block.go create mode 100644 streams/gen_collection.go create mode 100644 streams/gen_collectionpage.go create mode 100644 streams/gen_create.go create mode 100644 streams/gen_delete.go create mode 100644 streams/gen_dislike.go create mode 100644 streams/gen_document.go create mode 100644 streams/gen_event.go create mode 100644 streams/gen_flag.go create mode 100644 streams/gen_follow.go create mode 100644 streams/gen_group.go create mode 100644 streams/gen_ignore.go create mode 100644 streams/gen_image.go create mode 100644 streams/gen_intransitiveactivity.go create mode 100644 streams/gen_invite.go create mode 100644 streams/gen_join.go create mode 100644 streams/gen_leave.go create mode 100644 streams/gen_like.go create mode 100644 streams/gen_link.go create mode 100644 streams/gen_listen.go create mode 100644 streams/gen_mention.go create mode 100644 streams/gen_move.go create mode 100644 streams/gen_note.go create mode 100644 streams/gen_object.go create mode 100644 streams/gen_offer.go create mode 100644 streams/gen_orderedcollection.go create mode 100644 streams/gen_orderedcollectionpage.go create mode 100644 streams/gen_organization.go create mode 100644 streams/gen_page.go create mode 100644 streams/gen_person.go create mode 100644 streams/gen_place.go create mode 100644 streams/gen_profile.go create mode 100644 streams/gen_question.go create mode 100644 streams/gen_read.go create mode 100644 streams/gen_reject.go create mode 100644 streams/gen_relationship.go create mode 100644 streams/gen_remove.go create mode 100644 streams/gen_service.go create mode 100644 streams/gen_streams.go create mode 100644 streams/gen_tentativeaccept.go create mode 100644 streams/gen_tentativereject.go create mode 100644 streams/gen_tombstone.go create mode 100644 streams/gen_travel.go create mode 100644 streams/gen_undo.go create mode 100644 streams/gen_update.go create mode 100644 streams/gen_video.go create mode 100644 streams/gen_view.go delete mode 100644 streams/streams.go create mode 100755 tools/streams/streams diff --git a/streams/gen_accept.go b/streams/gen_accept.go new file mode 100644 index 0000000..e50f13d --- /dev/null +++ b/streams/gen_accept.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor accepts the object. The target property can be used in certain circumstances to indicate the context into which the object has been accepted. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Accept struct { + // The raw type from the vocab package + raw *vocab.Accept +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Accept) Raw() (n *vocab.Accept) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Accept) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Accept) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Accept) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Accept) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Accept) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Accept) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Accept) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Accept) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Accept) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Accept) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Accept) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Accept) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Accept) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Accept) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Accept) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Accept) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Accept) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Accept) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Accept) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Accept) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Accept) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Accept) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Accept) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Accept) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Accept) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Accept) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Accept) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Accept) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Accept) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Accept) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Accept) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Accept) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Accept) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Accept) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Accept) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Accept) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Accept) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Accept) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Accept) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Accept) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Accept) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Accept) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Accept) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Accept) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Accept) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Accept) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Accept) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Accept) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Accept) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Accept) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Accept) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Accept) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Accept) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Accept) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Accept) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Accept) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Accept) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Accept) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Accept) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Accept) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Accept) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Accept) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Accept) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Accept) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Accept) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Accept) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Accept) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Accept) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Accept) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Accept) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Accept) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Accept) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Accept) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Accept) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Accept) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Accept) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Accept) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Accept) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Accept) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Accept) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Accept) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Accept) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Accept) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Accept) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Accept) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Accept) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Accept) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Accept) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Accept) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Accept) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Accept) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Accept) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Accept) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Accept) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Accept) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Accept) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Accept) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Accept) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Accept) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Accept) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Accept) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Accept) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Accept) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Accept) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Accept) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Accept) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Accept) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Accept) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Accept) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Accept) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Accept) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Accept) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Accept) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Accept) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Accept) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Accept) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Accept) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Accept) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Accept) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Accept) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Accept) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Accept) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Accept) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Accept) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Accept) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Accept) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Accept) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Accept) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Accept) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Accept) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Accept) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Accept) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Accept) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Accept) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Accept) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Accept) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Accept) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Accept) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Accept) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Accept) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Accept) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Accept) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Accept) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Accept) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Accept) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Accept) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Accept) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Accept) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Accept) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Accept) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Accept) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Accept) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Accept) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Accept) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Accept) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Accept) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_activity.go b/streams/gen_activity.go new file mode 100644 index 0000000..0b49fb0 --- /dev/null +++ b/streams/gen_activity.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Activity struct { + // The raw type from the vocab package + raw *vocab.Activity +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Activity) Raw() (n *vocab.Activity) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Activity) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Activity) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Activity) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Activity) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Activity) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Activity) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Activity) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Activity) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Activity) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Activity) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Activity) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Activity) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Activity) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Activity) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Activity) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Activity) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Activity) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Activity) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Activity) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Activity) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Activity) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Activity) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Activity) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Activity) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Activity) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Activity) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Activity) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Activity) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Activity) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Activity) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Activity) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Activity) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Activity) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Activity) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Activity) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Activity) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Activity) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Activity) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Activity) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Activity) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Activity) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Activity) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Activity) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Activity) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Activity) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Activity) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Activity) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Activity) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Activity) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Activity) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Activity) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Activity) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Activity) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Activity) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Activity) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Activity) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Activity) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Activity) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Activity) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Activity) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Activity) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Activity) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Activity) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Activity) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Activity) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Activity) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Activity) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Activity) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Activity) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Activity) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Activity) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Activity) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Activity) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Activity) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Activity) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Activity) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Activity) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Activity) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Activity) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Activity) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Activity) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Activity) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Activity) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Activity) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Activity) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Activity) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Activity) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Activity) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Activity) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Activity) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Activity) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Activity) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Activity) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Activity) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Activity) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Activity) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Activity) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Activity) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Activity) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Activity) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Activity) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Activity) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Activity) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Activity) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Activity) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Activity) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Activity) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Activity) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Activity) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Activity) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Activity) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Activity) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Activity) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Activity) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Activity) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Activity) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Activity) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Activity) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Activity) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Activity) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Activity) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Activity) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Activity) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Activity) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Activity) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Activity) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Activity) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Activity) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Activity) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Activity) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Activity) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Activity) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Activity) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Activity) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Activity) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Activity) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Activity) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Activity) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Activity) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Activity) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Activity) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Activity) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Activity) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Activity) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Activity) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Activity) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Activity) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Activity) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Activity) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Activity) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Activity) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Activity) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Activity) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Activity) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Activity) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Activity) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_add.go b/streams/gen_add.go new file mode 100644 index 0000000..4a1cfef --- /dev/null +++ b/streams/gen_add.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor has added the object to the target. If the target property is not explicitly specified, the target would need to be determined implicitly by context. The origin can be used to identify the context from which the object originated. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Add struct { + // The raw type from the vocab package + raw *vocab.Add +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Add) Raw() (n *vocab.Add) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Add) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Add) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Add) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Add) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Add) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Add) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Add) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Add) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Add) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Add) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Add) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Add) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Add) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Add) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Add) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Add) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Add) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Add) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Add) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Add) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Add) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Add) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Add) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Add) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Add) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Add) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Add) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Add) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Add) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Add) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Add) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Add) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Add) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Add) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Add) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Add) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Add) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Add) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Add) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Add) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Add) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Add) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Add) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Add) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Add) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Add) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Add) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Add) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Add) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Add) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Add) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Add) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Add) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Add) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Add) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Add) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Add) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Add) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Add) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Add) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Add) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Add) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Add) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Add) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Add) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Add) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Add) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Add) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Add) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Add) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Add) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Add) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Add) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Add) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Add) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Add) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Add) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Add) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Add) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Add) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Add) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Add) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Add) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Add) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Add) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Add) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Add) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Add) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Add) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Add) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Add) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Add) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Add) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Add) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Add) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Add) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Add) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Add) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Add) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Add) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Add) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Add) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Add) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Add) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Add) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Add) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Add) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Add) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Add) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Add) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Add) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Add) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Add) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Add) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Add) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Add) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Add) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Add) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Add) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Add) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Add) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Add) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Add) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Add) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Add) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Add) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Add) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Add) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Add) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Add) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Add) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Add) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Add) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Add) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Add) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Add) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Add) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Add) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Add) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Add) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Add) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Add) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Add) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Add) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Add) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Add) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Add) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Add) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Add) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Add) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Add) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Add) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Add) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Add) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Add) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Add) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_announce.go b/streams/gen_announce.go new file mode 100644 index 0000000..14a170c --- /dev/null +++ b/streams/gen_announce.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor is calling the target's attention the object. The origin typically has no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Announce struct { + // The raw type from the vocab package + raw *vocab.Announce +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Announce) Raw() (n *vocab.Announce) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Announce) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Announce) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Announce) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Announce) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Announce) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Announce) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Announce) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Announce) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Announce) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Announce) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Announce) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Announce) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Announce) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Announce) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Announce) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Announce) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Announce) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Announce) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Announce) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Announce) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Announce) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Announce) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Announce) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Announce) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Announce) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Announce) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Announce) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Announce) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Announce) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Announce) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Announce) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Announce) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Announce) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Announce) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Announce) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Announce) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Announce) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Announce) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Announce) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Announce) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Announce) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Announce) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Announce) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Announce) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Announce) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Announce) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Announce) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Announce) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Announce) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Announce) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Announce) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Announce) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Announce) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Announce) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Announce) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Announce) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Announce) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Announce) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Announce) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Announce) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Announce) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Announce) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Announce) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Announce) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Announce) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Announce) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Announce) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Announce) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Announce) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Announce) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Announce) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Announce) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Announce) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Announce) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Announce) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Announce) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Announce) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Announce) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Announce) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Announce) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Announce) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Announce) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Announce) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Announce) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Announce) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Announce) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Announce) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Announce) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Announce) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Announce) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Announce) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Announce) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Announce) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Announce) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Announce) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Announce) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Announce) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Announce) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Announce) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Announce) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Announce) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Announce) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Announce) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Announce) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Announce) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Announce) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Announce) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Announce) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Announce) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Announce) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Announce) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Announce) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Announce) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Announce) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Announce) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Announce) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Announce) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Announce) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Announce) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Announce) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Announce) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Announce) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Announce) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Announce) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Announce) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Announce) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Announce) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Announce) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Announce) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Announce) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Announce) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Announce) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Announce) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Announce) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Announce) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Announce) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Announce) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Announce) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Announce) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Announce) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Announce) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Announce) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Announce) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Announce) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Announce) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Announce) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Announce) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Announce) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Announce) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Announce) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Announce) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Announce) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Announce) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Announce) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Announce) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Announce) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_application.go b/streams/gen_application.go new file mode 100644 index 0000000..d012f5d --- /dev/null +++ b/streams/gen_application.go @@ -0,0 +1,2093 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Describes a software application. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Application struct { + // The raw type from the vocab package + raw *vocab.Application +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Application) Raw() (n *vocab.Application) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Application) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Application) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Application) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Application) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Application) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Application) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Application) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Application) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Application) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Application) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Application) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Application) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Application) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Application) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Application) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Application) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Application) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Application) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Application) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Application) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Application) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Application) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Application) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Application) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Application) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Application) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Application) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Application) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Application) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Application) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Application) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Application) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Application) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Application) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Application) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Application) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Application) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Application) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Application) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Application) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Application) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Application) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Application) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Application) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Application) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Application) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Application) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Application) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Application) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Application) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Application) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Application) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Application) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Application) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Application) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Application) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Application) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Application) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Application) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Application) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Application) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Application) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Application) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Application) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Application) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Application) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Application) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Application) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Application) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Application) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Application) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Application) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Application) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Application) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Application) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Application) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Application) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Application) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Application) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Application) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Application) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Application) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Application) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Application) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Application) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Application) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Application) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Application) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Application) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Application) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Application) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Application) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Application) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Application) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Application) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Application) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Application) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Application) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Application) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Application) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Application) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Application) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Application) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Application) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Application) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Application) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Application) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Application) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Application) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Application) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Application) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Application) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Application) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Application) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Application) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Application) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Application) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Application) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Application) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Application) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Application) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Application) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Application) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Application) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Application) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Application) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Application) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Application) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Application) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_arrive.go b/streams/gen_arrive.go new file mode 100644 index 0000000..56e5154 --- /dev/null +++ b/streams/gen_arrive.go @@ -0,0 +1,2400 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// An IntransitiveActivity that indicates that the actor has arrived at the location. The origin can be used to identify the context from which the actor originated. The target typically has no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Arrive struct { + // The raw type from the vocab package + raw *vocab.Arrive +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Arrive) Raw() (n *vocab.Arrive) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Arrive) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Arrive) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Arrive) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Arrive) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Arrive) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Arrive) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Arrive) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Arrive) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Arrive) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Arrive) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Arrive) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Arrive) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Arrive) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Arrive) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Arrive) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Arrive) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Arrive) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Arrive) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Arrive) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Arrive) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Arrive) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Arrive) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Arrive) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Arrive) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Arrive) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Arrive) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Arrive) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Arrive) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Arrive) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Arrive) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Arrive) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Arrive) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Arrive) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Arrive) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Arrive) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Arrive) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Arrive) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Arrive) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Arrive) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Arrive) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Arrive) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Arrive) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Arrive) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Arrive) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Arrive) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Arrive) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Arrive) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Arrive) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Arrive) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Arrive) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Arrive) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Arrive) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Arrive) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Arrive) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Arrive) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Arrive) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Arrive) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Arrive) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Arrive) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Arrive) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Arrive) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Arrive) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Arrive) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Arrive) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Arrive) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Arrive) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Arrive) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Arrive) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Arrive) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Arrive) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Arrive) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Arrive) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Arrive) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Arrive) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Arrive) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Arrive) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Arrive) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Arrive) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Arrive) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Arrive) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Arrive) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Arrive) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Arrive) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Arrive) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Arrive) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Arrive) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Arrive) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Arrive) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Arrive) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Arrive) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Arrive) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Arrive) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Arrive) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Arrive) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Arrive) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Arrive) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Arrive) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Arrive) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Arrive) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Arrive) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Arrive) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Arrive) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Arrive) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Arrive) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Arrive) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Arrive) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Arrive) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Arrive) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Arrive) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Arrive) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Arrive) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Arrive) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Arrive) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Arrive) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Arrive) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Arrive) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Arrive) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Arrive) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Arrive) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Arrive) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Arrive) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Arrive) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Arrive) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Arrive) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Arrive) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Arrive) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Arrive) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Arrive) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Arrive) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Arrive) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Arrive) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Arrive) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Arrive) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Arrive) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Arrive) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Arrive) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Arrive) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Arrive) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Arrive) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Arrive) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Arrive) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Arrive) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Arrive) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Arrive) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Arrive) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Arrive) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Arrive) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Arrive) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Arrive) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Arrive) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Arrive) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Arrive) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_article.go b/streams/gen_article.go new file mode 100644 index 0000000..4fae7a0 --- /dev/null +++ b/streams/gen_article.go @@ -0,0 +1,2093 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Represents any kind of multi-paragraph written work. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Article struct { + // The raw type from the vocab package + raw *vocab.Article +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Article) Raw() (n *vocab.Article) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Article) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Article) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Article) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Article) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Article) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Article) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Article) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Article) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Article) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Article) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Article) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Article) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Article) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Article) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Article) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Article) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Article) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Article) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Article) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Article) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Article) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Article) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Article) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Article) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Article) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Article) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Article) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Article) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Article) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Article) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Article) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Article) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Article) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Article) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Article) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Article) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Article) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Article) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Article) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Article) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Article) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Article) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Article) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Article) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Article) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Article) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Article) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Article) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Article) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Article) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Article) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Article) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Article) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Article) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Article) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Article) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Article) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Article) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Article) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Article) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Article) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Article) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Article) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Article) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Article) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Article) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Article) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Article) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Article) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Article) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Article) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Article) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Article) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Article) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Article) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Article) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Article) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Article) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Article) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Article) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Article) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Article) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Article) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Article) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Article) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Article) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Article) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Article) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Article) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Article) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Article) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Article) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Article) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Article) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Article) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Article) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Article) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Article) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Article) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Article) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Article) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Article) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Article) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Article) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Article) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Article) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Article) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Article) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Article) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Article) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Article) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Article) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Article) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Article) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Article) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Article) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Article) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Article) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Article) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Article) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Article) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Article) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Article) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Article) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Article) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Article) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Article) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Article) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Article) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_audio.go b/streams/gen_audio.go new file mode 100644 index 0000000..bf6011f --- /dev/null +++ b/streams/gen_audio.go @@ -0,0 +1,2093 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Represents an audio document of any kind. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Audio struct { + // The raw type from the vocab package + raw *vocab.Audio +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Audio) Raw() (n *vocab.Audio) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Audio) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Audio) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Audio) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Audio) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Audio) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Audio) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Audio) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Audio) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Audio) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Audio) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Audio) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Audio) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Audio) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Audio) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Audio) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Audio) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Audio) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Audio) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Audio) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Audio) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Audio) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Audio) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Audio) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Audio) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Audio) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Audio) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Audio) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Audio) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Audio) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Audio) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Audio) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Audio) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Audio) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Audio) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Audio) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Audio) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Audio) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Audio) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Audio) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Audio) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Audio) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Audio) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Audio) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Audio) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Audio) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Audio) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Audio) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Audio) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Audio) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Audio) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Audio) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Audio) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Audio) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Audio) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Audio) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Audio) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Audio) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Audio) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Audio) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Audio) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Audio) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Audio) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Audio) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Audio) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Audio) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Audio) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Audio) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Audio) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Audio) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Audio) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Audio) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Audio) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Audio) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Audio) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Audio) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Audio) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Audio) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Audio) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Audio) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Audio) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Audio) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Audio) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Audio) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Audio) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Audio) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Audio) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Audio) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Audio) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Audio) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Audio) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Audio) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Audio) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Audio) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Audio) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Audio) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Audio) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Audio) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Audio) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Audio) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Audio) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Audio) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Audio) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Audio) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Audio) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Audio) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Audio) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Audio) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Audio) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Audio) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Audio) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Audio) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Audio) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Audio) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Audio) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Audio) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Audio) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Audio) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Audio) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Audio) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Audio) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Audio) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Audio) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Audio) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Audio) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Audio) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Audio) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Audio) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Audio) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Audio) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_block.go b/streams/gen_block.go new file mode 100644 index 0000000..fc63b91 --- /dev/null +++ b/streams/gen_block.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor is blocking the object. Blocking is a stronger form of Ignore. The typical use is to support social systems that allow one user to block activities or content of other users. The target and origin typically have no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Block struct { + // The raw type from the vocab package + raw *vocab.Block +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Block) Raw() (n *vocab.Block) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Block) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Block) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Block) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Block) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Block) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Block) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Block) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Block) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Block) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Block) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Block) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Block) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Block) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Block) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Block) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Block) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Block) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Block) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Block) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Block) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Block) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Block) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Block) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Block) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Block) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Block) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Block) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Block) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Block) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Block) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Block) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Block) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Block) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Block) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Block) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Block) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Block) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Block) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Block) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Block) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Block) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Block) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Block) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Block) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Block) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Block) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Block) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Block) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Block) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Block) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Block) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Block) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Block) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Block) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Block) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Block) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Block) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Block) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Block) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Block) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Block) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Block) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Block) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Block) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Block) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Block) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Block) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Block) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Block) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Block) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Block) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Block) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Block) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Block) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Block) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Block) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Block) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Block) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Block) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Block) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Block) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Block) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Block) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Block) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Block) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Block) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Block) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Block) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Block) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Block) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Block) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Block) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Block) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Block) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Block) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Block) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Block) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Block) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Block) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Block) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Block) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Block) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Block) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Block) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Block) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Block) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Block) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Block) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Block) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Block) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Block) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Block) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Block) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Block) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Block) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Block) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Block) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Block) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Block) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Block) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Block) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Block) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Block) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Block) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Block) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Block) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Block) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Block) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Block) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Block) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Block) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Block) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Block) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Block) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Block) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Block) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Block) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Block) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Block) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Block) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Block) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Block) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Block) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Block) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Block) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Block) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Block) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Block) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Block) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Block) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Block) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Block) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Block) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Block) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Block) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Block) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_collection.go b/streams/gen_collection.go new file mode 100644 index 0000000..3d4b286 --- /dev/null +++ b/streams/gen_collection.go @@ -0,0 +1,2306 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// A Collection is a subtype of Object that represents ordered or unordered sets of Object or Link instances. Refer to the Activity Streams 2.0 Core specification for a complete description of the Collection type. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Collection struct { + // The raw type from the vocab package + raw *vocab.Collection +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Collection) Raw() (n *vocab.Collection) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Collection) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// GetTotalItems attempts to get this 'totalItems' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetTotalItems() (r Resolution, k int64) { + r = Unresolved + handled := false + if t.raw.IsTotalItems() { + k = t.raw.GetTotalItems() + if handled { + r = Resolved + } + } else if t.raw.IsTotalItemsIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasTotalItems returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasTotalItems() (p Presence) { + p = NoPresence + if t.raw.IsTotalItems() { + p = ConvenientPresence + } else if t.raw.IsTotalItemsIRI() { + p = RawPresence + } + return + +} + +// SetTotalItems sets the value for property 'totalItems'. +func (t *Collection) SetTotalItems(k int64) { + t.raw.SetTotalItems(k) + +} + +// GetCurrent attempts to get this 'current' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetCurrent() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCurrentIRI() { + k = t.raw.GetCurrentIRI() + if handled { + r = Resolved + } + } else if t.raw.IsCurrentCollectionPage() { + r = RawResolutionNeeded + } else if t.raw.IsCurrentLink() { + r = RawResolutionNeeded + } + return + +} + +// HasCurrent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasCurrent() (p Presence) { + p = NoPresence + if t.raw.IsCurrentIRI() { + p = ConvenientPresence + } else if t.raw.IsCurrentCollectionPage() { + p = RawPresence + } else if t.raw.IsCurrentLink() { + p = RawPresence + } + return + +} + +// SetCurrent sets the value for property 'current'. +func (t *Collection) SetCurrent(k *url.URL) { + t.raw.SetCurrentIRI(k) + +} + +// GetFirst attempts to get this 'first' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetFirst() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsFirstIRI() { + k = t.raw.GetFirstIRI() + if handled { + r = Resolved + } + } else if t.raw.IsFirstCollectionPage() { + r = RawResolutionNeeded + } else if t.raw.IsFirstLink() { + r = RawResolutionNeeded + } + return + +} + +// HasFirst returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasFirst() (p Presence) { + p = NoPresence + if t.raw.IsFirstIRI() { + p = ConvenientPresence + } else if t.raw.IsFirstCollectionPage() { + p = RawPresence + } else if t.raw.IsFirstLink() { + p = RawPresence + } + return + +} + +// SetFirst sets the value for property 'first'. +func (t *Collection) SetFirst(k *url.URL) { + t.raw.SetFirstIRI(k) + +} + +// GetLast attempts to get this 'last' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetLast() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsLastIRI() { + k = t.raw.GetLastIRI() + if handled { + r = Resolved + } + } else if t.raw.IsLastCollectionPage() { + r = RawResolutionNeeded + } else if t.raw.IsLastLink() { + r = RawResolutionNeeded + } + return + +} + +// HasLast returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasLast() (p Presence) { + p = NoPresence + if t.raw.IsLastIRI() { + p = ConvenientPresence + } else if t.raw.IsLastCollectionPage() { + p = RawPresence + } else if t.raw.IsLastLink() { + p = RawPresence + } + return + +} + +// SetLast sets the value for property 'last'. +func (t *Collection) SetLast(k *url.URL) { + t.raw.SetLastIRI(k) + +} + +// LenItems returns the number of values this property contains. Each index be used with HasItems to determine if ResolveItems is safe to call or if raw handling would be needed. +func (t *Collection) LenItems() (idx int) { + return t.raw.ItemsLen() + +} + +// ResolveItems passes the actual concrete type to the resolver for handing property items. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolveItems(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsItemsObject(idx) { + handled, err = r.dispatch(t.raw.GetItemsObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsItemsLink(idx) { + handled, err = r.dispatch(t.raw.GetItemsLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsItemsIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasItems returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasItems(idx int) (p Presence) { + p = NoPresence + if t.raw.IsItemsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsItemsLink(idx) { + p = ConvenientPresence + } else if t.raw.IsItemsIRI(idx) { + p = RawPresence + } + return + +} + +// AppendItems appends an 'Object' typed value. +func (t *Collection) AppendItems(i vocab.ObjectType) { + t.raw.AppendItemsObject(i) + +} + +// PrependItems prepends an 'Object' typed value. +func (t *Collection) PrependItems(i vocab.ObjectType) { + t.raw.PrependItemsObject(i) + +} + +// AppendItemsLink appends a 'Link' typed value. +func (t *Collection) AppendItemsLink(i vocab.LinkType) { + t.raw.AppendItemsLink(i) + +} + +// PrependItemsLink prepends a 'Link' typed value. +func (t *Collection) PrependItemsLink(i vocab.LinkType) { + t.raw.PrependItemsLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Collection) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Collection) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Collection) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Collection) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Collection) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Collection) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Collection) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Collection) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Collection) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Collection) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Collection) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Collection) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Collection) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Collection) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Collection) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Collection) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Collection) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Collection) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Collection) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Collection) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Collection) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Collection) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Collection) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Collection) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Collection) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Collection) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Collection) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Collection) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Collection) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Collection) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Collection) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Collection) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Collection) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Collection) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Collection) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Collection) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Collection) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Collection) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Collection) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Collection) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Collection) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Collection) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Collection) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Collection) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Collection) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Collection) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Collection) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Collection) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Collection) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Collection) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Collection) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Collection) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Collection) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Collection) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Collection) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Collection) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Collection) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Collection) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Collection) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Collection) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Collection) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Collection) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Collection) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Collection) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Collection) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Collection) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Collection) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Collection) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Collection) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Collection) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Collection) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Collection) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Collection) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Collection) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Collection) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Collection) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Collection) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Collection) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Collection) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Collection) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Collection) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Collection) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Collection) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Collection) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Collection) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Collection) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Collection) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Collection) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Collection) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Collection) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Collection) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Collection) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Collection) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Collection) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Collection) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Collection) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Collection) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Collection) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Collection) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Collection) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Collection) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Collection) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Collection) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Collection) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Collection) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Collection) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Collection) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Collection) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Collection) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Collection) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Collection) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Collection) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Collection) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Collection) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Collection) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Collection) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Collection) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Collection) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Collection) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Collection) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Collection) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Collection) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Collection) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Collection) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Collection) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Collection) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Collection) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Collection) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_collectionpage.go b/streams/gen_collectionpage.go new file mode 100644 index 0000000..f435bc3 --- /dev/null +++ b/streams/gen_collectionpage.go @@ -0,0 +1,2420 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Used to represent distinct subsets of items from a Collection. Refer to the Activity Streams 2.0 Core for a complete description of the CollectionPage object. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type CollectionPage struct { + // The raw type from the vocab package + raw *vocab.CollectionPage +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *CollectionPage) Raw() (n *vocab.CollectionPage) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *CollectionPage) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// ResolvePartOf passes the actual concrete type to the resolver for handing property partOf. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolvePartOf(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPartOfLink() { + handled, err = r.dispatch(t.raw.GetPartOfLink()) + if handled { + s = Resolved + } + } else if t.raw.IsPartOfCollection() { + s = RawResolutionNeeded + } else if t.raw.IsPartOfIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasPartOf returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasPartOf() (p Presence) { + p = NoPresence + if t.raw.IsPartOfLink() { + p = ConvenientPresence + } else if t.raw.IsPartOfCollection() { + p = RawPresence + } else if t.raw.IsPartOfIRI() { + p = RawPresence + } + return + +} + +// SetPartOf sets this value to be a 'Link' type. +func (t *CollectionPage) SetPartOf(i vocab.LinkType) { + t.raw.SetPartOfLink(i) + +} + +// GetNext attempts to get this 'next' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetNext() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsNextIRI() { + k = t.raw.GetNextIRI() + if handled { + r = Resolved + } + } else if t.raw.IsNextCollectionPage() { + r = RawResolutionNeeded + } else if t.raw.IsNextLink() { + r = RawResolutionNeeded + } + return + +} + +// HasNext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasNext() (p Presence) { + p = NoPresence + if t.raw.IsNextIRI() { + p = ConvenientPresence + } else if t.raw.IsNextCollectionPage() { + p = RawPresence + } else if t.raw.IsNextLink() { + p = RawPresence + } + return + +} + +// SetNext sets the value for property 'next'. +func (t *CollectionPage) SetNext(k *url.URL) { + t.raw.SetNextIRI(k) + +} + +// GetPrev attempts to get this 'prev' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetPrev() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsPrevIRI() { + k = t.raw.GetPrevIRI() + if handled { + r = Resolved + } + } else if t.raw.IsPrevCollectionPage() { + r = RawResolutionNeeded + } else if t.raw.IsPrevLink() { + r = RawResolutionNeeded + } + return + +} + +// HasPrev returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasPrev() (p Presence) { + p = NoPresence + if t.raw.IsPrevIRI() { + p = ConvenientPresence + } else if t.raw.IsPrevCollectionPage() { + p = RawPresence + } else if t.raw.IsPrevLink() { + p = RawPresence + } + return + +} + +// SetPrev sets the value for property 'prev'. +func (t *CollectionPage) SetPrev(k *url.URL) { + t.raw.SetPrevIRI(k) + +} + +// GetTotalItems attempts to get this 'totalItems' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetTotalItems() (r Resolution, k int64) { + r = Unresolved + handled := false + if t.raw.IsTotalItems() { + k = t.raw.GetTotalItems() + if handled { + r = Resolved + } + } else if t.raw.IsTotalItemsIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasTotalItems returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasTotalItems() (p Presence) { + p = NoPresence + if t.raw.IsTotalItems() { + p = ConvenientPresence + } else if t.raw.IsTotalItemsIRI() { + p = RawPresence + } + return + +} + +// SetTotalItems sets the value for property 'totalItems'. +func (t *CollectionPage) SetTotalItems(k int64) { + t.raw.SetTotalItems(k) + +} + +// GetCurrent attempts to get this 'current' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetCurrent() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCurrentIRI() { + k = t.raw.GetCurrentIRI() + if handled { + r = Resolved + } + } else if t.raw.IsCurrentCollectionPage() { + r = RawResolutionNeeded + } else if t.raw.IsCurrentLink() { + r = RawResolutionNeeded + } + return + +} + +// HasCurrent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasCurrent() (p Presence) { + p = NoPresence + if t.raw.IsCurrentIRI() { + p = ConvenientPresence + } else if t.raw.IsCurrentCollectionPage() { + p = RawPresence + } else if t.raw.IsCurrentLink() { + p = RawPresence + } + return + +} + +// SetCurrent sets the value for property 'current'. +func (t *CollectionPage) SetCurrent(k *url.URL) { + t.raw.SetCurrentIRI(k) + +} + +// GetFirst attempts to get this 'first' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetFirst() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsFirstIRI() { + k = t.raw.GetFirstIRI() + if handled { + r = Resolved + } + } else if t.raw.IsFirstCollectionPage() { + r = RawResolutionNeeded + } else if t.raw.IsFirstLink() { + r = RawResolutionNeeded + } + return + +} + +// HasFirst returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasFirst() (p Presence) { + p = NoPresence + if t.raw.IsFirstIRI() { + p = ConvenientPresence + } else if t.raw.IsFirstCollectionPage() { + p = RawPresence + } else if t.raw.IsFirstLink() { + p = RawPresence + } + return + +} + +// SetFirst sets the value for property 'first'. +func (t *CollectionPage) SetFirst(k *url.URL) { + t.raw.SetFirstIRI(k) + +} + +// GetLast attempts to get this 'last' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetLast() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsLastIRI() { + k = t.raw.GetLastIRI() + if handled { + r = Resolved + } + } else if t.raw.IsLastCollectionPage() { + r = RawResolutionNeeded + } else if t.raw.IsLastLink() { + r = RawResolutionNeeded + } + return + +} + +// HasLast returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasLast() (p Presence) { + p = NoPresence + if t.raw.IsLastIRI() { + p = ConvenientPresence + } else if t.raw.IsLastCollectionPage() { + p = RawPresence + } else if t.raw.IsLastLink() { + p = RawPresence + } + return + +} + +// SetLast sets the value for property 'last'. +func (t *CollectionPage) SetLast(k *url.URL) { + t.raw.SetLastIRI(k) + +} + +// LenItems returns the number of values this property contains. Each index be used with HasItems to determine if ResolveItems is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenItems() (idx int) { + return t.raw.ItemsLen() + +} + +// ResolveItems passes the actual concrete type to the resolver for handing property items. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolveItems(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsItemsObject(idx) { + handled, err = r.dispatch(t.raw.GetItemsObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsItemsLink(idx) { + handled, err = r.dispatch(t.raw.GetItemsLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsItemsIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasItems returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasItems(idx int) (p Presence) { + p = NoPresence + if t.raw.IsItemsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsItemsLink(idx) { + p = ConvenientPresence + } else if t.raw.IsItemsIRI(idx) { + p = RawPresence + } + return + +} + +// AppendItems appends an 'Object' typed value. +func (t *CollectionPage) AppendItems(i vocab.ObjectType) { + t.raw.AppendItemsObject(i) + +} + +// PrependItems prepends an 'Object' typed value. +func (t *CollectionPage) PrependItems(i vocab.ObjectType) { + t.raw.PrependItemsObject(i) + +} + +// AppendItemsLink appends a 'Link' typed value. +func (t *CollectionPage) AppendItemsLink(i vocab.LinkType) { + t.raw.AppendItemsLink(i) + +} + +// PrependItemsLink prepends a 'Link' typed value. +func (t *CollectionPage) PrependItemsLink(i vocab.LinkType) { + t.raw.PrependItemsLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *CollectionPage) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *CollectionPage) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *CollectionPage) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *CollectionPage) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *CollectionPage) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *CollectionPage) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *CollectionPage) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *CollectionPage) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *CollectionPage) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *CollectionPage) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *CollectionPage) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *CollectionPage) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *CollectionPage) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *CollectionPage) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *CollectionPage) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *CollectionPage) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *CollectionPage) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *CollectionPage) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *CollectionPage) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *CollectionPage) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *CollectionPage) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *CollectionPage) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *CollectionPage) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *CollectionPage) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *CollectionPage) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *CollectionPage) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *CollectionPage) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *CollectionPage) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *CollectionPage) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *CollectionPage) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *CollectionPage) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *CollectionPage) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *CollectionPage) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *CollectionPage) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *CollectionPage) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *CollectionPage) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *CollectionPage) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *CollectionPage) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *CollectionPage) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *CollectionPage) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *CollectionPage) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *CollectionPage) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *CollectionPage) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *CollectionPage) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *CollectionPage) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *CollectionPage) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *CollectionPage) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *CollectionPage) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *CollectionPage) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *CollectionPage) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *CollectionPage) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *CollectionPage) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *CollectionPage) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *CollectionPage) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *CollectionPage) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *CollectionPage) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *CollectionPage) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *CollectionPage) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *CollectionPage) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *CollectionPage) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *CollectionPage) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *CollectionPage) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *CollectionPage) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *CollectionPage) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *CollectionPage) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *CollectionPage) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *CollectionPage) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *CollectionPage) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *CollectionPage) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *CollectionPage) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *CollectionPage) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *CollectionPage) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *CollectionPage) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *CollectionPage) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *CollectionPage) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *CollectionPage) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *CollectionPage) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *CollectionPage) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *CollectionPage) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *CollectionPage) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *CollectionPage) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *CollectionPage) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *CollectionPage) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *CollectionPage) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *CollectionPage) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *CollectionPage) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *CollectionPage) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *CollectionPage) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *CollectionPage) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *CollectionPage) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *CollectionPage) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *CollectionPage) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *CollectionPage) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *CollectionPage) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *CollectionPage) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *CollectionPage) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *CollectionPage) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *CollectionPage) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *CollectionPage) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *CollectionPage) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *CollectionPage) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *CollectionPage) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *CollectionPage) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *CollectionPage) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *CollectionPage) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *CollectionPage) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *CollectionPage) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *CollectionPage) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_create.go b/streams/gen_create.go new file mode 100644 index 0000000..47bd88d --- /dev/null +++ b/streams/gen_create.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor has created the object. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Create struct { + // The raw type from the vocab package + raw *vocab.Create +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Create) Raw() (n *vocab.Create) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Create) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Create) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Create) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Create) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Create) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Create) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Create) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Create) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Create) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Create) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Create) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Create) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Create) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Create) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Create) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Create) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Create) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Create) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Create) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Create) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Create) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Create) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Create) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Create) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Create) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Create) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Create) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Create) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Create) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Create) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Create) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Create) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Create) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Create) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Create) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Create) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Create) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Create) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Create) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Create) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Create) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Create) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Create) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Create) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Create) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Create) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Create) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Create) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Create) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Create) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Create) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Create) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Create) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Create) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Create) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Create) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Create) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Create) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Create) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Create) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Create) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Create) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Create) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Create) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Create) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Create) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Create) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Create) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Create) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Create) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Create) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Create) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Create) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Create) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Create) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Create) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Create) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Create) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Create) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Create) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Create) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Create) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Create) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Create) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Create) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Create) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Create) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Create) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Create) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Create) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Create) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Create) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Create) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Create) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Create) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Create) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Create) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Create) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Create) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Create) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Create) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Create) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Create) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Create) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Create) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Create) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Create) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Create) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Create) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Create) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Create) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Create) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Create) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Create) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Create) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Create) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Create) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Create) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Create) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Create) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Create) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Create) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Create) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Create) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Create) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Create) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Create) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Create) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Create) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Create) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Create) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Create) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Create) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Create) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Create) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Create) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Create) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Create) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Create) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Create) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Create) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Create) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Create) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Create) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Create) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Create) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Create) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Create) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Create) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Create) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Create) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Create) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Create) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Create) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Create) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Create) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_delete.go b/streams/gen_delete.go new file mode 100644 index 0000000..428c2ad --- /dev/null +++ b/streams/gen_delete.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor has deleted the object. If specified, the origin indicates the context from which the object was deleted. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Delete struct { + // The raw type from the vocab package + raw *vocab.Delete +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Delete) Raw() (n *vocab.Delete) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Delete) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Delete) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Delete) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Delete) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Delete) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Delete) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Delete) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Delete) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Delete) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Delete) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Delete) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Delete) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Delete) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Delete) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Delete) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Delete) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Delete) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Delete) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Delete) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Delete) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Delete) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Delete) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Delete) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Delete) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Delete) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Delete) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Delete) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Delete) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Delete) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Delete) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Delete) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Delete) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Delete) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Delete) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Delete) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Delete) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Delete) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Delete) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Delete) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Delete) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Delete) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Delete) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Delete) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Delete) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Delete) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Delete) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Delete) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Delete) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Delete) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Delete) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Delete) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Delete) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Delete) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Delete) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Delete) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Delete) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Delete) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Delete) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Delete) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Delete) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Delete) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Delete) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Delete) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Delete) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Delete) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Delete) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Delete) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Delete) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Delete) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Delete) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Delete) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Delete) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Delete) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Delete) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Delete) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Delete) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Delete) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Delete) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Delete) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Delete) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Delete) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Delete) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Delete) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Delete) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Delete) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Delete) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Delete) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Delete) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Delete) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Delete) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Delete) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Delete) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Delete) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Delete) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Delete) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Delete) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Delete) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Delete) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Delete) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Delete) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Delete) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Delete) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Delete) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Delete) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Delete) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Delete) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Delete) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Delete) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Delete) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Delete) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Delete) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Delete) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Delete) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Delete) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Delete) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Delete) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Delete) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Delete) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Delete) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Delete) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Delete) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Delete) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Delete) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Delete) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Delete) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Delete) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Delete) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Delete) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Delete) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Delete) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Delete) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Delete) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Delete) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Delete) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Delete) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Delete) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Delete) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Delete) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Delete) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Delete) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Delete) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Delete) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Delete) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Delete) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Delete) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Delete) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Delete) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Delete) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Delete) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Delete) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Delete) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Delete) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Delete) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Delete) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Delete) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Delete) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_dislike.go b/streams/gen_dislike.go new file mode 100644 index 0000000..1a43e0b --- /dev/null +++ b/streams/gen_dislike.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor dislikes the object. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Dislike struct { + // The raw type from the vocab package + raw *vocab.Dislike +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Dislike) Raw() (n *vocab.Dislike) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Dislike) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Dislike) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Dislike) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Dislike) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Dislike) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Dislike) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Dislike) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Dislike) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Dislike) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Dislike) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Dislike) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Dislike) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Dislike) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Dislike) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Dislike) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Dislike) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Dislike) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Dislike) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Dislike) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Dislike) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Dislike) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Dislike) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Dislike) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Dislike) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Dislike) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Dislike) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Dislike) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Dislike) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Dislike) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Dislike) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Dislike) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Dislike) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Dislike) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Dislike) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Dislike) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Dislike) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Dislike) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Dislike) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Dislike) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Dislike) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Dislike) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Dislike) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Dislike) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Dislike) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Dislike) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Dislike) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Dislike) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Dislike) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Dislike) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Dislike) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Dislike) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Dislike) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Dislike) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Dislike) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Dislike) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Dislike) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Dislike) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Dislike) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Dislike) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Dislike) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Dislike) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Dislike) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Dislike) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Dislike) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Dislike) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Dislike) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Dislike) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Dislike) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Dislike) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Dislike) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Dislike) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Dislike) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Dislike) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Dislike) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Dislike) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Dislike) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Dislike) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Dislike) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Dislike) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Dislike) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Dislike) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Dislike) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Dislike) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Dislike) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Dislike) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Dislike) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Dislike) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Dislike) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Dislike) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Dislike) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Dislike) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Dislike) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Dislike) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Dislike) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Dislike) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Dislike) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Dislike) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Dislike) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Dislike) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Dislike) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Dislike) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Dislike) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Dislike) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Dislike) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Dislike) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Dislike) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Dislike) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Dislike) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Dislike) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Dislike) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Dislike) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Dislike) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Dislike) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Dislike) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Dislike) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Dislike) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Dislike) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Dislike) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Dislike) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Dislike) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Dislike) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Dislike) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Dislike) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Dislike) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Dislike) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Dislike) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Dislike) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Dislike) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Dislike) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Dislike) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Dislike) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Dislike) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Dislike) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Dislike) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Dislike) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Dislike) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Dislike) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Dislike) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Dislike) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Dislike) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Dislike) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Dislike) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Dislike) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Dislike) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Dislike) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Dislike) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Dislike) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Dislike) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Dislike) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Dislike) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Dislike) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Dislike) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Dislike) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Dislike) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Dislike) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Dislike) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_document.go b/streams/gen_document.go new file mode 100644 index 0000000..7d4584b --- /dev/null +++ b/streams/gen_document.go @@ -0,0 +1,2093 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Represents a document of any kind. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Document struct { + // The raw type from the vocab package + raw *vocab.Document +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Document) Raw() (n *vocab.Document) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Document) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Document) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Document) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Document) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Document) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Document) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Document) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Document) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Document) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Document) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Document) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Document) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Document) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Document) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Document) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Document) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Document) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Document) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Document) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Document) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Document) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Document) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Document) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Document) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Document) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Document) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Document) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Document) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Document) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Document) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Document) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Document) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Document) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Document) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Document) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Document) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Document) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Document) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Document) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Document) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Document) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Document) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Document) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Document) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Document) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Document) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Document) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Document) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Document) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Document) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Document) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Document) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Document) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Document) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Document) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Document) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Document) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Document) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Document) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Document) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Document) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Document) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Document) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Document) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Document) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Document) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Document) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Document) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Document) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Document) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Document) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Document) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Document) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Document) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Document) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Document) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Document) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Document) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Document) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Document) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Document) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Document) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Document) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Document) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Document) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Document) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Document) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Document) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Document) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Document) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Document) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Document) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Document) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Document) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Document) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Document) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Document) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Document) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Document) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Document) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Document) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Document) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Document) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Document) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Document) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Document) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Document) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Document) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Document) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Document) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Document) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Document) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Document) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Document) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Document) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Document) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Document) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Document) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Document) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Document) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Document) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Document) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Document) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Document) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Document) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Document) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Document) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Document) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Document) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_event.go b/streams/gen_event.go new file mode 100644 index 0000000..7ba37c9 --- /dev/null +++ b/streams/gen_event.go @@ -0,0 +1,2093 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Represents any kind of event. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Event struct { + // The raw type from the vocab package + raw *vocab.Event +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Event) Raw() (n *vocab.Event) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Event) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Event) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Event) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Event) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Event) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Event) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Event) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Event) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Event) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Event) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Event) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Event) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Event) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Event) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Event) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Event) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Event) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Event) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Event) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Event) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Event) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Event) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Event) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Event) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Event) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Event) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Event) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Event) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Event) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Event) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Event) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Event) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Event) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Event) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Event) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Event) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Event) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Event) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Event) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Event) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Event) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Event) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Event) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Event) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Event) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Event) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Event) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Event) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Event) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Event) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Event) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Event) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Event) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Event) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Event) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Event) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Event) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Event) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Event) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Event) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Event) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Event) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Event) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Event) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Event) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Event) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Event) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Event) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Event) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Event) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Event) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Event) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Event) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Event) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Event) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Event) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Event) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Event) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Event) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Event) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Event) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Event) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Event) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Event) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Event) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Event) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Event) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Event) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Event) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Event) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Event) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Event) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Event) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Event) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Event) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Event) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Event) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Event) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Event) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Event) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Event) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Event) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Event) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Event) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Event) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Event) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Event) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Event) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Event) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Event) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Event) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Event) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Event) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Event) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Event) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Event) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Event) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Event) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Event) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Event) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Event) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Event) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Event) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Event) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Event) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Event) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Event) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Event) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Event) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_flag.go b/streams/gen_flag.go new file mode 100644 index 0000000..7cad8f5 --- /dev/null +++ b/streams/gen_flag.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor is "flagging" the object. Flagging is defined in the sense common to many social platforms as reporting content as being inappropriate for any number of reasons. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Flag struct { + // The raw type from the vocab package + raw *vocab.Flag +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Flag) Raw() (n *vocab.Flag) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Flag) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Flag) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Flag) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Flag) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Flag) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Flag) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Flag) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Flag) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Flag) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Flag) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Flag) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Flag) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Flag) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Flag) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Flag) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Flag) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Flag) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Flag) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Flag) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Flag) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Flag) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Flag) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Flag) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Flag) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Flag) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Flag) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Flag) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Flag) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Flag) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Flag) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Flag) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Flag) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Flag) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Flag) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Flag) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Flag) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Flag) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Flag) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Flag) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Flag) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Flag) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Flag) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Flag) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Flag) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Flag) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Flag) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Flag) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Flag) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Flag) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Flag) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Flag) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Flag) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Flag) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Flag) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Flag) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Flag) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Flag) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Flag) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Flag) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Flag) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Flag) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Flag) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Flag) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Flag) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Flag) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Flag) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Flag) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Flag) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Flag) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Flag) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Flag) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Flag) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Flag) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Flag) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Flag) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Flag) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Flag) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Flag) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Flag) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Flag) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Flag) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Flag) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Flag) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Flag) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Flag) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Flag) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Flag) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Flag) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Flag) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Flag) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Flag) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Flag) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Flag) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Flag) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Flag) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Flag) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Flag) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Flag) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Flag) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Flag) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Flag) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Flag) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Flag) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Flag) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Flag) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Flag) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Flag) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Flag) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Flag) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Flag) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Flag) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Flag) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Flag) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Flag) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Flag) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Flag) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Flag) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Flag) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Flag) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Flag) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Flag) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Flag) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Flag) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Flag) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Flag) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Flag) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Flag) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Flag) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Flag) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Flag) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Flag) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Flag) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Flag) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Flag) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Flag) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Flag) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Flag) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Flag) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Flag) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Flag) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Flag) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Flag) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Flag) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Flag) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Flag) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Flag) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Flag) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Flag) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Flag) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Flag) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Flag) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Flag) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Flag) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Flag) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Flag) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Flag) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_follow.go b/streams/gen_follow.go new file mode 100644 index 0000000..0d012e6 --- /dev/null +++ b/streams/gen_follow.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor is "following" the object. Following is defined in the sense typically used within Social systems in which the actor is interested in any activity performed by or on the object. The target and origin typically have no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Follow struct { + // The raw type from the vocab package + raw *vocab.Follow +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Follow) Raw() (n *vocab.Follow) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Follow) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Follow) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Follow) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Follow) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Follow) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Follow) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Follow) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Follow) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Follow) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Follow) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Follow) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Follow) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Follow) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Follow) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Follow) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Follow) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Follow) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Follow) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Follow) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Follow) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Follow) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Follow) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Follow) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Follow) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Follow) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Follow) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Follow) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Follow) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Follow) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Follow) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Follow) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Follow) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Follow) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Follow) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Follow) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Follow) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Follow) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Follow) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Follow) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Follow) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Follow) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Follow) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Follow) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Follow) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Follow) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Follow) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Follow) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Follow) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Follow) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Follow) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Follow) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Follow) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Follow) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Follow) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Follow) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Follow) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Follow) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Follow) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Follow) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Follow) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Follow) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Follow) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Follow) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Follow) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Follow) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Follow) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Follow) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Follow) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Follow) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Follow) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Follow) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Follow) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Follow) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Follow) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Follow) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Follow) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Follow) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Follow) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Follow) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Follow) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Follow) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Follow) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Follow) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Follow) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Follow) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Follow) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Follow) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Follow) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Follow) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Follow) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Follow) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Follow) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Follow) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Follow) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Follow) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Follow) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Follow) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Follow) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Follow) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Follow) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Follow) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Follow) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Follow) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Follow) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Follow) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Follow) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Follow) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Follow) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Follow) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Follow) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Follow) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Follow) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Follow) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Follow) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Follow) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Follow) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Follow) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Follow) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Follow) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Follow) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Follow) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Follow) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Follow) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Follow) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Follow) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Follow) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Follow) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Follow) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Follow) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Follow) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Follow) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Follow) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Follow) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Follow) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Follow) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Follow) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Follow) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Follow) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Follow) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Follow) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Follow) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Follow) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Follow) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Follow) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Follow) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Follow) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Follow) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Follow) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Follow) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Follow) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Follow) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Follow) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Follow) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Follow) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Follow) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Follow) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_group.go b/streams/gen_group.go new file mode 100644 index 0000000..166c2e4 --- /dev/null +++ b/streams/gen_group.go @@ -0,0 +1,2093 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Represents a formal or informal collective of Actors. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Group struct { + // The raw type from the vocab package + raw *vocab.Group +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Group) Raw() (n *vocab.Group) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Group) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Group) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Group) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Group) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Group) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Group) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Group) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Group) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Group) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Group) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Group) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Group) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Group) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Group) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Group) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Group) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Group) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Group) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Group) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Group) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Group) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Group) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Group) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Group) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Group) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Group) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Group) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Group) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Group) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Group) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Group) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Group) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Group) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Group) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Group) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Group) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Group) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Group) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Group) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Group) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Group) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Group) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Group) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Group) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Group) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Group) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Group) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Group) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Group) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Group) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Group) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Group) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Group) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Group) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Group) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Group) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Group) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Group) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Group) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Group) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Group) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Group) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Group) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Group) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Group) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Group) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Group) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Group) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Group) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Group) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Group) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Group) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Group) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Group) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Group) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Group) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Group) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Group) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Group) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Group) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Group) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Group) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Group) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Group) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Group) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Group) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Group) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Group) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Group) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Group) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Group) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Group) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Group) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Group) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Group) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Group) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Group) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Group) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Group) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Group) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Group) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Group) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Group) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Group) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Group) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Group) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Group) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Group) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Group) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Group) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Group) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Group) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Group) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Group) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Group) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Group) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Group) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Group) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Group) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Group) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Group) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Group) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Group) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Group) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Group) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Group) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Group) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Group) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Group) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_ignore.go b/streams/gen_ignore.go new file mode 100644 index 0000000..18933db --- /dev/null +++ b/streams/gen_ignore.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor is ignoring the object. The target and origin typically have no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Ignore struct { + // The raw type from the vocab package + raw *vocab.Ignore +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Ignore) Raw() (n *vocab.Ignore) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Ignore) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Ignore) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Ignore) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Ignore) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Ignore) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Ignore) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Ignore) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Ignore) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Ignore) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Ignore) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Ignore) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Ignore) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Ignore) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Ignore) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Ignore) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Ignore) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Ignore) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Ignore) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Ignore) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Ignore) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Ignore) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Ignore) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Ignore) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Ignore) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Ignore) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Ignore) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Ignore) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Ignore) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Ignore) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Ignore) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Ignore) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Ignore) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Ignore) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Ignore) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Ignore) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Ignore) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Ignore) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Ignore) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Ignore) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Ignore) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Ignore) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Ignore) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Ignore) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Ignore) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Ignore) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Ignore) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Ignore) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Ignore) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Ignore) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Ignore) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Ignore) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Ignore) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Ignore) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Ignore) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Ignore) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Ignore) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Ignore) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Ignore) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Ignore) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Ignore) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Ignore) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Ignore) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Ignore) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Ignore) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Ignore) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Ignore) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Ignore) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Ignore) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Ignore) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Ignore) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Ignore) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Ignore) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Ignore) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Ignore) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Ignore) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Ignore) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Ignore) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Ignore) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Ignore) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Ignore) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Ignore) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Ignore) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Ignore) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Ignore) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Ignore) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Ignore) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Ignore) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Ignore) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Ignore) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Ignore) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Ignore) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Ignore) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Ignore) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Ignore) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Ignore) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Ignore) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Ignore) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Ignore) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Ignore) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Ignore) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Ignore) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Ignore) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Ignore) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Ignore) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Ignore) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Ignore) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Ignore) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Ignore) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Ignore) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Ignore) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Ignore) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Ignore) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Ignore) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Ignore) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Ignore) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Ignore) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Ignore) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Ignore) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Ignore) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Ignore) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Ignore) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Ignore) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Ignore) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Ignore) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Ignore) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Ignore) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Ignore) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Ignore) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Ignore) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Ignore) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Ignore) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Ignore) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Ignore) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Ignore) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Ignore) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Ignore) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Ignore) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Ignore) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Ignore) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Ignore) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Ignore) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Ignore) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Ignore) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Ignore) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Ignore) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Ignore) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Ignore) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Ignore) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Ignore) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Ignore) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Ignore) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Ignore) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Ignore) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Ignore) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Ignore) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Ignore) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_image.go b/streams/gen_image.go new file mode 100644 index 0000000..fae19da --- /dev/null +++ b/streams/gen_image.go @@ -0,0 +1,2161 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// An image document of any kind This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Image struct { + // The raw type from the vocab package + raw *vocab.Image +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Image) Raw() (n *vocab.Image) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Image) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// GetHeight attempts to get this 'height' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetHeight() (r Resolution, k int64) { + r = Unresolved + handled := false + if t.raw.IsHeight() { + k = t.raw.GetHeight() + if handled { + r = Resolved + } + } else if t.raw.IsHeightIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasHeight returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasHeight() (p Presence) { + p = NoPresence + if t.raw.IsHeight() { + p = ConvenientPresence + } else if t.raw.IsHeightIRI() { + p = RawPresence + } + return + +} + +// SetHeight sets the value for property 'height'. +func (t *Image) SetHeight(k int64) { + t.raw.SetHeight(k) + +} + +// GetWidth attempts to get this 'width' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetWidth() (r Resolution, k int64) { + r = Unresolved + handled := false + if t.raw.IsWidth() { + k = t.raw.GetWidth() + if handled { + r = Resolved + } + } else if t.raw.IsWidthIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasWidth returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasWidth() (p Presence) { + p = NoPresence + if t.raw.IsWidth() { + p = ConvenientPresence + } else if t.raw.IsWidthIRI() { + p = RawPresence + } + return + +} + +// SetWidth sets the value for property 'width'. +func (t *Image) SetWidth(k int64) { + t.raw.SetWidth(k) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Image) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Image) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Image) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Image) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Image) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Image) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Image) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Image) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Image) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Image) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Image) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Image) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Image) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Image) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Image) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Image) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Image) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Image) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Image) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Image) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Image) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Image) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Image) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Image) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Image) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Image) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Image) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Image) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Image) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Image) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Image) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Image) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Image) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Image) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Image) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Image) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Image) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Image) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Image) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Image) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Image) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Image) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Image) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Image) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Image) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Image) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Image) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Image) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Image) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Image) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Image) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Image) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Image) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Image) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Image) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Image) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Image) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Image) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Image) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Image) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Image) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Image) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Image) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Image) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Image) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Image) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Image) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Image) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Image) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Image) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Image) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Image) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Image) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Image) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Image) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Image) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Image) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Image) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Image) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Image) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Image) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Image) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Image) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Image) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Image) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Image) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Image) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Image) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Image) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Image) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Image) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Image) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Image) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Image) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Image) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Image) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Image) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Image) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Image) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Image) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Image) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Image) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Image) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Image) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Image) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Image) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Image) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Image) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Image) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Image) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Image) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Image) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Image) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Image) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Image) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Image) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Image) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Image) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Image) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Image) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Image) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Image) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Image) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Image) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Image) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Image) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Image) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Image) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_intransitiveactivity.go b/streams/gen_intransitiveactivity.go new file mode 100644 index 0000000..69fda37 --- /dev/null +++ b/streams/gen_intransitiveactivity.go @@ -0,0 +1,2400 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Instances of IntransitiveActivity are a subtype of Activity representing intransitive actions. The object property is therefore inappropriate for these activities. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type IntransitiveActivity struct { + // The raw type from the vocab package + raw *vocab.IntransitiveActivity +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *IntransitiveActivity) Raw() (n *vocab.IntransitiveActivity) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *IntransitiveActivity) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *IntransitiveActivity) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *IntransitiveActivity) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *IntransitiveActivity) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *IntransitiveActivity) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *IntransitiveActivity) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *IntransitiveActivity) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *IntransitiveActivity) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *IntransitiveActivity) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *IntransitiveActivity) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *IntransitiveActivity) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *IntransitiveActivity) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *IntransitiveActivity) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *IntransitiveActivity) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *IntransitiveActivity) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *IntransitiveActivity) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *IntransitiveActivity) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *IntransitiveActivity) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *IntransitiveActivity) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *IntransitiveActivity) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *IntransitiveActivity) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *IntransitiveActivity) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *IntransitiveActivity) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *IntransitiveActivity) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *IntransitiveActivity) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *IntransitiveActivity) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *IntransitiveActivity) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *IntransitiveActivity) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *IntransitiveActivity) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *IntransitiveActivity) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *IntransitiveActivity) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *IntransitiveActivity) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *IntransitiveActivity) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *IntransitiveActivity) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *IntransitiveActivity) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *IntransitiveActivity) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *IntransitiveActivity) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *IntransitiveActivity) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *IntransitiveActivity) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *IntransitiveActivity) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *IntransitiveActivity) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *IntransitiveActivity) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *IntransitiveActivity) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *IntransitiveActivity) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *IntransitiveActivity) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *IntransitiveActivity) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *IntransitiveActivity) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *IntransitiveActivity) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *IntransitiveActivity) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *IntransitiveActivity) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *IntransitiveActivity) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *IntransitiveActivity) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *IntransitiveActivity) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *IntransitiveActivity) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *IntransitiveActivity) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *IntransitiveActivity) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *IntransitiveActivity) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *IntransitiveActivity) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *IntransitiveActivity) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *IntransitiveActivity) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *IntransitiveActivity) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *IntransitiveActivity) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *IntransitiveActivity) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *IntransitiveActivity) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *IntransitiveActivity) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *IntransitiveActivity) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *IntransitiveActivity) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *IntransitiveActivity) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *IntransitiveActivity) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *IntransitiveActivity) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *IntransitiveActivity) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *IntransitiveActivity) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *IntransitiveActivity) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *IntransitiveActivity) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *IntransitiveActivity) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *IntransitiveActivity) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *IntransitiveActivity) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *IntransitiveActivity) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *IntransitiveActivity) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *IntransitiveActivity) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *IntransitiveActivity) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *IntransitiveActivity) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *IntransitiveActivity) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *IntransitiveActivity) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *IntransitiveActivity) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *IntransitiveActivity) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *IntransitiveActivity) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *IntransitiveActivity) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *IntransitiveActivity) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *IntransitiveActivity) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *IntransitiveActivity) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *IntransitiveActivity) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *IntransitiveActivity) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *IntransitiveActivity) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *IntransitiveActivity) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *IntransitiveActivity) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *IntransitiveActivity) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *IntransitiveActivity) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *IntransitiveActivity) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *IntransitiveActivity) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *IntransitiveActivity) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *IntransitiveActivity) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *IntransitiveActivity) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *IntransitiveActivity) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *IntransitiveActivity) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *IntransitiveActivity) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *IntransitiveActivity) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *IntransitiveActivity) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *IntransitiveActivity) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *IntransitiveActivity) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *IntransitiveActivity) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *IntransitiveActivity) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *IntransitiveActivity) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *IntransitiveActivity) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *IntransitiveActivity) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *IntransitiveActivity) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *IntransitiveActivity) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *IntransitiveActivity) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *IntransitiveActivity) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *IntransitiveActivity) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *IntransitiveActivity) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *IntransitiveActivity) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *IntransitiveActivity) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *IntransitiveActivity) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *IntransitiveActivity) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *IntransitiveActivity) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *IntransitiveActivity) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_invite.go b/streams/gen_invite.go new file mode 100644 index 0000000..7faba9f --- /dev/null +++ b/streams/gen_invite.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// A specialization of Offer in which the actor is extending an invitation for the object to the target. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Invite struct { + // The raw type from the vocab package + raw *vocab.Invite +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Invite) Raw() (n *vocab.Invite) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Invite) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Invite) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Invite) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Invite) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Invite) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Invite) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Invite) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Invite) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Invite) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Invite) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Invite) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Invite) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Invite) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Invite) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Invite) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Invite) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Invite) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Invite) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Invite) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Invite) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Invite) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Invite) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Invite) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Invite) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Invite) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Invite) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Invite) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Invite) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Invite) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Invite) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Invite) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Invite) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Invite) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Invite) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Invite) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Invite) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Invite) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Invite) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Invite) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Invite) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Invite) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Invite) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Invite) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Invite) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Invite) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Invite) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Invite) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Invite) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Invite) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Invite) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Invite) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Invite) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Invite) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Invite) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Invite) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Invite) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Invite) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Invite) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Invite) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Invite) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Invite) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Invite) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Invite) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Invite) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Invite) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Invite) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Invite) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Invite) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Invite) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Invite) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Invite) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Invite) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Invite) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Invite) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Invite) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Invite) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Invite) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Invite) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Invite) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Invite) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Invite) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Invite) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Invite) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Invite) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Invite) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Invite) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Invite) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Invite) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Invite) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Invite) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Invite) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Invite) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Invite) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Invite) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Invite) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Invite) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Invite) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Invite) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Invite) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Invite) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Invite) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Invite) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Invite) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Invite) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Invite) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Invite) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Invite) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Invite) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Invite) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Invite) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Invite) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Invite) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Invite) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Invite) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Invite) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Invite) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Invite) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Invite) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Invite) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Invite) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Invite) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Invite) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Invite) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Invite) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Invite) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Invite) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Invite) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Invite) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Invite) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Invite) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Invite) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Invite) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Invite) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Invite) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Invite) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Invite) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Invite) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Invite) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Invite) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Invite) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Invite) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Invite) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Invite) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Invite) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Invite) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Invite) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Invite) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Invite) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Invite) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Invite) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Invite) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Invite) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Invite) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Invite) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Invite) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Invite) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_join.go b/streams/gen_join.go new file mode 100644 index 0000000..3ac4bcd --- /dev/null +++ b/streams/gen_join.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor has joined the object. The target and origin typically have no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Join struct { + // The raw type from the vocab package + raw *vocab.Join +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Join) Raw() (n *vocab.Join) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Join) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Join) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Join) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Join) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Join) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Join) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Join) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Join) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Join) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Join) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Join) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Join) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Join) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Join) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Join) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Join) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Join) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Join) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Join) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Join) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Join) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Join) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Join) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Join) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Join) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Join) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Join) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Join) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Join) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Join) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Join) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Join) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Join) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Join) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Join) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Join) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Join) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Join) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Join) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Join) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Join) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Join) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Join) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Join) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Join) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Join) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Join) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Join) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Join) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Join) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Join) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Join) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Join) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Join) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Join) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Join) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Join) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Join) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Join) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Join) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Join) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Join) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Join) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Join) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Join) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Join) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Join) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Join) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Join) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Join) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Join) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Join) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Join) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Join) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Join) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Join) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Join) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Join) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Join) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Join) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Join) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Join) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Join) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Join) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Join) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Join) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Join) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Join) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Join) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Join) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Join) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Join) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Join) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Join) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Join) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Join) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Join) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Join) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Join) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Join) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Join) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Join) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Join) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Join) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Join) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Join) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Join) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Join) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Join) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Join) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Join) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Join) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Join) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Join) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Join) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Join) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Join) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Join) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Join) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Join) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Join) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Join) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Join) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Join) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Join) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Join) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Join) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Join) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Join) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Join) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Join) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Join) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Join) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Join) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Join) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Join) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Join) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Join) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Join) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Join) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Join) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Join) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Join) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Join) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Join) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Join) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Join) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Join) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Join) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Join) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Join) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Join) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Join) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Join) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Join) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Join) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_leave.go b/streams/gen_leave.go new file mode 100644 index 0000000..1ca731c --- /dev/null +++ b/streams/gen_leave.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor has left the object. The target and origin typically have no meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Leave struct { + // The raw type from the vocab package + raw *vocab.Leave +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Leave) Raw() (n *vocab.Leave) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Leave) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Leave) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Leave) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Leave) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Leave) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Leave) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Leave) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Leave) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Leave) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Leave) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Leave) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Leave) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Leave) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Leave) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Leave) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Leave) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Leave) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Leave) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Leave) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Leave) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Leave) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Leave) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Leave) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Leave) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Leave) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Leave) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Leave) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Leave) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Leave) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Leave) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Leave) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Leave) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Leave) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Leave) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Leave) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Leave) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Leave) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Leave) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Leave) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Leave) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Leave) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Leave) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Leave) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Leave) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Leave) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Leave) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Leave) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Leave) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Leave) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Leave) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Leave) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Leave) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Leave) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Leave) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Leave) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Leave) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Leave) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Leave) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Leave) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Leave) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Leave) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Leave) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Leave) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Leave) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Leave) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Leave) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Leave) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Leave) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Leave) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Leave) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Leave) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Leave) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Leave) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Leave) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Leave) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Leave) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Leave) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Leave) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Leave) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Leave) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Leave) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Leave) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Leave) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Leave) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Leave) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Leave) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Leave) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Leave) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Leave) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Leave) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Leave) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Leave) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Leave) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Leave) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Leave) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Leave) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Leave) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Leave) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Leave) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Leave) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Leave) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Leave) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Leave) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Leave) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Leave) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Leave) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Leave) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Leave) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Leave) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Leave) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Leave) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Leave) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Leave) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Leave) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Leave) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Leave) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Leave) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Leave) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Leave) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Leave) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Leave) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Leave) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Leave) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Leave) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Leave) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Leave) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Leave) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Leave) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Leave) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Leave) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Leave) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Leave) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Leave) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Leave) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Leave) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Leave) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Leave) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Leave) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Leave) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Leave) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Leave) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Leave) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Leave) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Leave) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Leave) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Leave) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Leave) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Leave) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Leave) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Leave) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Leave) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Leave) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Leave) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Leave) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Leave) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Leave) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_like.go b/streams/gen_like.go new file mode 100644 index 0000000..331d656 --- /dev/null +++ b/streams/gen_like.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor likes, recommends or endorses the object. The target and origin typically have no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Like struct { + // The raw type from the vocab package + raw *vocab.Like +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Like) Raw() (n *vocab.Like) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Like) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Like) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Like) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Like) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Like) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Like) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Like) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Like) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Like) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Like) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Like) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Like) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Like) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Like) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Like) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Like) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Like) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Like) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Like) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Like) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Like) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Like) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Like) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Like) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Like) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Like) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Like) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Like) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Like) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Like) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Like) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Like) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Like) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Like) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Like) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Like) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Like) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Like) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Like) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Like) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Like) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Like) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Like) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Like) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Like) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Like) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Like) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Like) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Like) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Like) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Like) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Like) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Like) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Like) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Like) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Like) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Like) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Like) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Like) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Like) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Like) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Like) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Like) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Like) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Like) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Like) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Like) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Like) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Like) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Like) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Like) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Like) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Like) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Like) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Like) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Like) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Like) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Like) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Like) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Like) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Like) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Like) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Like) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Like) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Like) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Like) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Like) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Like) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Like) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Like) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Like) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Like) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Like) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Like) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Like) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Like) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Like) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Like) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Like) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Like) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Like) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Like) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Like) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Like) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Like) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Like) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Like) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Like) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Like) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Like) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Like) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Like) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Like) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Like) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Like) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Like) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Like) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Like) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Like) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Like) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Like) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Like) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Like) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Like) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Like) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Like) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Like) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Like) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Like) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Like) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Like) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Like) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Like) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Like) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Like) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Like) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Like) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Like) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Like) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Like) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Like) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Like) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Like) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Like) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Like) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Like) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Like) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Like) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Like) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Like) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Like) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Like) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Like) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Like) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Like) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Like) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_link.go b/streams/gen_link.go new file mode 100644 index 0000000..cac7af5 --- /dev/null +++ b/streams/gen_link.go @@ -0,0 +1,581 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" +) + +// A Link is an indirect, qualified reference to a resource identified by a URL. The fundamental model for links is established by [ RFC5988]. Many of the properties defined by the Activity Vocabulary allow values that are either instances of Object or Link. When a Link is used, it establishes a qualified relation connecting the subject (the containing object) to the resource identified by the href. Properties of the Link are properties of the reference as opposed to properties of the resource. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Link struct { + // The raw type from the vocab package + raw *vocab.Link +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Link) Raw() (n *vocab.Link) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Link) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Link) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Link) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Link) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Link) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Link) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Link) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// GetHref attempts to get this 'href' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Link) GetHref() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasHref() { + k = t.raw.GetHref() + if handled { + r = Resolved + } + } + return + +} + +// HasHref returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Link) HasHref() (p Presence) { + p = NoPresence + if t.raw.HasHref() { + p = ConvenientPresence + } + return + +} + +// SetHref sets the value for property 'href'. +func (t *Link) SetHref(k *url.URL) { + t.raw.SetHref(k) + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Link) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Link) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Link) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenRel returns the number of values this property contains. Each index be used with HasRel to determine if GetRel is safe to call or if raw handling would be needed. +func (t *Link) LenRel() (idx int) { + return t.raw.RelLen() + +} + +// GetRel attempts to get this 'rel' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Link) GetRel(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsRel(idx) { + k = t.raw.GetRel(idx) + if handled { + r = Resolved + } + } else if t.raw.IsRelIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendRel appends the value for property 'rel'. +func (t *Link) AppendRel(k string) { + t.raw.AppendRel(k) + +} + +// PrependRel prepends the value for property 'rel'. +func (t *Link) PrependRel(k string) { + t.raw.PrependRel(k) + +} + +// RemoveRel deletes the value from the specified index for property 'rel'. +func (t *Link) RemoveRel(idx int) { + t.raw.RemoveRel(idx) + +} + +// HasRel returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Link) HasRel(idx int) (p Presence) { + p = NoPresence + if t.raw.IsRel(idx) { + p = ConvenientPresence + } else if t.raw.IsRelIRI(idx) { + p = RawPresence + } + return + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Link) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Link) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Link) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Link) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Link) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Link) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Link) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Link) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Link) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Link) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Link) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Link) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Link) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Link) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Link) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Link) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Link) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Link) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Link) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Link) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Link) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Link) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Link) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Link) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Link) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Link) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// GetHreflang attempts to get this 'hreflang' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Link) GetHreflang() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsHreflang() { + k = t.raw.GetHreflang() + if handled { + r = Resolved + } + } else if t.raw.IsHreflangIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasHreflang returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Link) HasHreflang() (p Presence) { + p = NoPresence + if t.raw.IsHreflang() { + p = ConvenientPresence + } else if t.raw.IsHreflangIRI() { + p = RawPresence + } + return + +} + +// SetHreflang sets the value for property 'hreflang'. +func (t *Link) SetHreflang(k string) { + t.raw.SetHreflang(k) + +} + +// GetHeight attempts to get this 'height' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Link) GetHeight() (r Resolution, k int64) { + r = Unresolved + handled := false + if t.raw.IsHeight() { + k = t.raw.GetHeight() + if handled { + r = Resolved + } + } else if t.raw.IsHeightIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasHeight returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Link) HasHeight() (p Presence) { + p = NoPresence + if t.raw.IsHeight() { + p = ConvenientPresence + } else if t.raw.IsHeightIRI() { + p = RawPresence + } + return + +} + +// SetHeight sets the value for property 'height'. +func (t *Link) SetHeight(k int64) { + t.raw.SetHeight(k) + +} + +// GetWidth attempts to get this 'width' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Link) GetWidth() (r Resolution, k int64) { + r = Unresolved + handled := false + if t.raw.IsWidth() { + k = t.raw.GetWidth() + if handled { + r = Resolved + } + } else if t.raw.IsWidthIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasWidth returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Link) HasWidth() (p Presence) { + p = NoPresence + if t.raw.IsWidth() { + p = ConvenientPresence + } else if t.raw.IsWidthIRI() { + p = RawPresence + } + return + +} + +// SetWidth sets the value for property 'width'. +func (t *Link) SetWidth(k int64) { + t.raw.SetWidth(k) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Link) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Link) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Link) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Link) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Link) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Link) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Link) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} diff --git a/streams/gen_listen.go b/streams/gen_listen.go new file mode 100644 index 0000000..1bc7bea --- /dev/null +++ b/streams/gen_listen.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor has listened to the object. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Listen struct { + // The raw type from the vocab package + raw *vocab.Listen +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Listen) Raw() (n *vocab.Listen) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Listen) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Listen) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Listen) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Listen) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Listen) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Listen) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Listen) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Listen) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Listen) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Listen) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Listen) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Listen) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Listen) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Listen) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Listen) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Listen) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Listen) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Listen) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Listen) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Listen) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Listen) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Listen) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Listen) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Listen) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Listen) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Listen) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Listen) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Listen) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Listen) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Listen) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Listen) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Listen) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Listen) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Listen) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Listen) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Listen) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Listen) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Listen) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Listen) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Listen) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Listen) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Listen) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Listen) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Listen) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Listen) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Listen) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Listen) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Listen) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Listen) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Listen) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Listen) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Listen) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Listen) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Listen) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Listen) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Listen) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Listen) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Listen) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Listen) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Listen) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Listen) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Listen) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Listen) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Listen) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Listen) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Listen) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Listen) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Listen) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Listen) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Listen) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Listen) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Listen) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Listen) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Listen) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Listen) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Listen) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Listen) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Listen) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Listen) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Listen) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Listen) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Listen) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Listen) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Listen) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Listen) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Listen) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Listen) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Listen) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Listen) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Listen) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Listen) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Listen) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Listen) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Listen) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Listen) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Listen) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Listen) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Listen) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Listen) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Listen) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Listen) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Listen) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Listen) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Listen) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Listen) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Listen) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Listen) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Listen) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Listen) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Listen) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Listen) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Listen) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Listen) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Listen) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Listen) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Listen) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Listen) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Listen) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Listen) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Listen) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Listen) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Listen) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Listen) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Listen) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Listen) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Listen) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Listen) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Listen) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Listen) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Listen) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Listen) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Listen) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Listen) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Listen) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Listen) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Listen) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Listen) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Listen) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Listen) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Listen) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Listen) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Listen) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Listen) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Listen) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Listen) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Listen) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Listen) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Listen) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Listen) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Listen) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Listen) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Listen) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Listen) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Listen) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Listen) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Listen) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_mention.go b/streams/gen_mention.go new file mode 100644 index 0000000..59722ac --- /dev/null +++ b/streams/gen_mention.go @@ -0,0 +1,581 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" +) + +// A specialized Link that represents an @mention. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Mention struct { + // The raw type from the vocab package + raw *vocab.Mention +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Mention) Raw() (n *vocab.Mention) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Mention) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Mention) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Mention) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Mention) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Mention) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Mention) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Mention) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// GetHref attempts to get this 'href' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Mention) GetHref() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasHref() { + k = t.raw.GetHref() + if handled { + r = Resolved + } + } + return + +} + +// HasHref returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Mention) HasHref() (p Presence) { + p = NoPresence + if t.raw.HasHref() { + p = ConvenientPresence + } + return + +} + +// SetHref sets the value for property 'href'. +func (t *Mention) SetHref(k *url.URL) { + t.raw.SetHref(k) + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Mention) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Mention) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Mention) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenRel returns the number of values this property contains. Each index be used with HasRel to determine if GetRel is safe to call or if raw handling would be needed. +func (t *Mention) LenRel() (idx int) { + return t.raw.RelLen() + +} + +// GetRel attempts to get this 'rel' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Mention) GetRel(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsRel(idx) { + k = t.raw.GetRel(idx) + if handled { + r = Resolved + } + } else if t.raw.IsRelIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendRel appends the value for property 'rel'. +func (t *Mention) AppendRel(k string) { + t.raw.AppendRel(k) + +} + +// PrependRel prepends the value for property 'rel'. +func (t *Mention) PrependRel(k string) { + t.raw.PrependRel(k) + +} + +// RemoveRel deletes the value from the specified index for property 'rel'. +func (t *Mention) RemoveRel(idx int) { + t.raw.RemoveRel(idx) + +} + +// HasRel returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Mention) HasRel(idx int) (p Presence) { + p = NoPresence + if t.raw.IsRel(idx) { + p = ConvenientPresence + } else if t.raw.IsRelIRI(idx) { + p = RawPresence + } + return + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Mention) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Mention) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Mention) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Mention) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Mention) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Mention) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Mention) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Mention) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Mention) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Mention) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Mention) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Mention) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Mention) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Mention) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Mention) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Mention) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Mention) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Mention) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Mention) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Mention) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Mention) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Mention) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Mention) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Mention) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Mention) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Mention) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// GetHreflang attempts to get this 'hreflang' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Mention) GetHreflang() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsHreflang() { + k = t.raw.GetHreflang() + if handled { + r = Resolved + } + } else if t.raw.IsHreflangIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasHreflang returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Mention) HasHreflang() (p Presence) { + p = NoPresence + if t.raw.IsHreflang() { + p = ConvenientPresence + } else if t.raw.IsHreflangIRI() { + p = RawPresence + } + return + +} + +// SetHreflang sets the value for property 'hreflang'. +func (t *Mention) SetHreflang(k string) { + t.raw.SetHreflang(k) + +} + +// GetHeight attempts to get this 'height' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Mention) GetHeight() (r Resolution, k int64) { + r = Unresolved + handled := false + if t.raw.IsHeight() { + k = t.raw.GetHeight() + if handled { + r = Resolved + } + } else if t.raw.IsHeightIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasHeight returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Mention) HasHeight() (p Presence) { + p = NoPresence + if t.raw.IsHeight() { + p = ConvenientPresence + } else if t.raw.IsHeightIRI() { + p = RawPresence + } + return + +} + +// SetHeight sets the value for property 'height'. +func (t *Mention) SetHeight(k int64) { + t.raw.SetHeight(k) + +} + +// GetWidth attempts to get this 'width' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Mention) GetWidth() (r Resolution, k int64) { + r = Unresolved + handled := false + if t.raw.IsWidth() { + k = t.raw.GetWidth() + if handled { + r = Resolved + } + } else if t.raw.IsWidthIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasWidth returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Mention) HasWidth() (p Presence) { + p = NoPresence + if t.raw.IsWidth() { + p = ConvenientPresence + } else if t.raw.IsWidthIRI() { + p = RawPresence + } + return + +} + +// SetWidth sets the value for property 'width'. +func (t *Mention) SetWidth(k int64) { + t.raw.SetWidth(k) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Mention) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Mention) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Mention) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Mention) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Mention) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Mention) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Mention) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} diff --git a/streams/gen_move.go b/streams/gen_move.go new file mode 100644 index 0000000..d5ec887 --- /dev/null +++ b/streams/gen_move.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor has moved object from origin to target. If the origin or target are not specified, either can be determined by context. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Move struct { + // The raw type from the vocab package + raw *vocab.Move +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Move) Raw() (n *vocab.Move) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Move) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Move) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Move) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Move) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Move) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Move) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Move) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Move) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Move) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Move) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Move) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Move) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Move) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Move) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Move) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Move) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Move) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Move) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Move) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Move) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Move) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Move) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Move) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Move) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Move) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Move) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Move) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Move) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Move) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Move) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Move) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Move) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Move) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Move) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Move) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Move) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Move) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Move) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Move) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Move) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Move) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Move) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Move) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Move) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Move) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Move) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Move) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Move) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Move) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Move) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Move) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Move) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Move) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Move) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Move) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Move) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Move) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Move) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Move) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Move) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Move) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Move) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Move) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Move) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Move) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Move) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Move) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Move) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Move) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Move) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Move) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Move) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Move) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Move) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Move) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Move) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Move) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Move) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Move) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Move) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Move) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Move) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Move) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Move) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Move) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Move) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Move) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Move) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Move) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Move) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Move) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Move) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Move) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Move) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Move) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Move) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Move) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Move) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Move) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Move) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Move) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Move) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Move) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Move) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Move) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Move) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Move) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Move) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Move) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Move) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Move) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Move) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Move) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Move) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Move) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Move) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Move) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Move) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Move) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Move) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Move) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Move) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Move) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Move) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Move) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Move) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Move) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Move) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Move) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Move) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Move) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Move) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Move) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Move) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Move) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Move) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Move) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Move) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Move) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Move) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Move) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Move) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Move) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Move) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Move) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Move) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Move) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Move) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Move) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Move) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Move) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Move) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Move) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Move) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Move) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Move) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_note.go b/streams/gen_note.go new file mode 100644 index 0000000..e9c68e3 --- /dev/null +++ b/streams/gen_note.go @@ -0,0 +1,2093 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Represents a short written work typically less than a single paragraph in length. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Note struct { + // The raw type from the vocab package + raw *vocab.Note +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Note) Raw() (n *vocab.Note) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Note) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Note) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Note) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Note) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Note) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Note) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Note) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Note) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Note) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Note) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Note) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Note) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Note) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Note) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Note) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Note) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Note) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Note) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Note) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Note) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Note) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Note) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Note) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Note) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Note) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Note) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Note) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Note) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Note) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Note) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Note) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Note) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Note) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Note) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Note) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Note) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Note) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Note) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Note) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Note) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Note) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Note) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Note) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Note) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Note) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Note) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Note) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Note) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Note) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Note) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Note) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Note) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Note) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Note) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Note) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Note) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Note) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Note) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Note) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Note) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Note) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Note) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Note) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Note) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Note) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Note) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Note) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Note) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Note) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Note) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Note) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Note) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Note) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Note) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Note) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Note) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Note) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Note) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Note) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Note) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Note) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Note) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Note) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Note) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Note) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Note) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Note) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Note) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Note) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Note) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Note) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Note) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Note) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Note) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Note) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Note) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Note) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Note) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Note) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Note) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Note) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Note) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Note) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Note) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Note) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Note) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Note) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Note) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Note) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Note) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Note) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Note) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Note) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Note) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Note) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Note) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Note) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Note) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Note) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Note) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Note) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Note) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Note) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Note) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Note) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Note) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Note) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Note) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Note) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_object.go b/streams/gen_object.go new file mode 100644 index 0000000..2fcd3b2 --- /dev/null +++ b/streams/gen_object.go @@ -0,0 +1,2093 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Object struct { + // The raw type from the vocab package + raw *vocab.Object +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Object) Raw() (n *vocab.Object) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Object) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Object) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Object) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Object) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Object) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Object) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Object) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Object) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Object) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Object) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Object) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Object) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Object) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Object) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Object) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Object) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Object) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Object) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Object) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Object) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Object) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Object) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Object) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Object) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Object) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Object) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Object) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Object) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Object) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Object) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Object) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Object) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Object) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Object) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Object) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Object) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Object) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Object) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Object) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Object) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Object) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Object) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Object) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Object) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Object) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Object) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Object) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Object) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Object) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Object) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Object) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Object) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Object) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Object) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Object) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Object) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Object) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Object) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Object) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Object) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Object) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Object) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Object) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Object) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Object) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Object) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Object) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Object) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Object) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Object) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Object) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Object) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Object) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Object) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Object) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Object) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Object) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Object) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Object) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Object) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Object) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Object) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Object) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Object) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Object) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Object) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Object) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Object) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Object) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Object) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Object) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Object) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Object) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Object) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Object) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Object) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Object) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Object) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Object) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Object) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Object) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Object) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Object) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Object) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Object) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Object) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Object) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Object) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Object) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Object) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Object) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Object) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Object) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Object) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Object) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Object) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Object) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Object) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Object) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Object) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Object) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Object) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Object) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Object) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Object) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Object) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Object) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Object) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Object) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_offer.go b/streams/gen_offer.go new file mode 100644 index 0000000..7c24d0f --- /dev/null +++ b/streams/gen_offer.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor is offering the object. If specified, the target indicates the entity to which the object is being offered. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Offer struct { + // The raw type from the vocab package + raw *vocab.Offer +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Offer) Raw() (n *vocab.Offer) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Offer) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Offer) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Offer) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Offer) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Offer) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Offer) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Offer) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Offer) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Offer) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Offer) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Offer) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Offer) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Offer) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Offer) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Offer) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Offer) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Offer) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Offer) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Offer) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Offer) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Offer) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Offer) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Offer) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Offer) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Offer) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Offer) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Offer) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Offer) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Offer) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Offer) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Offer) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Offer) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Offer) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Offer) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Offer) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Offer) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Offer) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Offer) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Offer) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Offer) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Offer) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Offer) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Offer) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Offer) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Offer) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Offer) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Offer) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Offer) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Offer) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Offer) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Offer) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Offer) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Offer) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Offer) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Offer) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Offer) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Offer) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Offer) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Offer) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Offer) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Offer) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Offer) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Offer) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Offer) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Offer) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Offer) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Offer) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Offer) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Offer) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Offer) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Offer) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Offer) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Offer) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Offer) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Offer) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Offer) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Offer) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Offer) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Offer) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Offer) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Offer) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Offer) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Offer) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Offer) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Offer) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Offer) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Offer) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Offer) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Offer) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Offer) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Offer) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Offer) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Offer) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Offer) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Offer) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Offer) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Offer) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Offer) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Offer) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Offer) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Offer) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Offer) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Offer) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Offer) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Offer) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Offer) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Offer) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Offer) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Offer) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Offer) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Offer) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Offer) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Offer) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Offer) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Offer) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Offer) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Offer) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Offer) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Offer) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Offer) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Offer) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Offer) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Offer) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Offer) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Offer) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Offer) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Offer) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Offer) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Offer) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Offer) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Offer) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Offer) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Offer) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Offer) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Offer) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Offer) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Offer) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Offer) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Offer) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Offer) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Offer) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Offer) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Offer) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Offer) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Offer) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Offer) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Offer) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Offer) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Offer) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Offer) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Offer) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Offer) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Offer) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Offer) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Offer) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Offer) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_orderedcollection.go b/streams/gen_orderedcollection.go new file mode 100644 index 0000000..e41b601 --- /dev/null +++ b/streams/gen_orderedcollection.go @@ -0,0 +1,2306 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// A subtype of Collection in which members of the logical collection are assumed to always be strictly ordered. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type OrderedCollection struct { + // The raw type from the vocab package + raw *vocab.OrderedCollection +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *OrderedCollection) Raw() (n *vocab.OrderedCollection) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *OrderedCollection) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenOrderedItems returns the number of values this property contains. Each index be used with HasOrderedItems to determine if ResolveOrderedItems is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenOrderedItems() (idx int) { + return t.raw.OrderedItemsLen() + +} + +// ResolveOrderedItems passes the actual concrete type to the resolver for handing property orderedItems. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolveOrderedItems(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOrderedItemsObject(idx) { + handled, err = r.dispatch(t.raw.GetOrderedItemsObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOrderedItemsLink(idx) { + handled, err = r.dispatch(t.raw.GetOrderedItemsLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOrderedItemsIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrderedItems returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasOrderedItems(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOrderedItemsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOrderedItemsLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOrderedItemsIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrderedItems appends an 'Object' typed value. +func (t *OrderedCollection) AppendOrderedItems(i vocab.ObjectType) { + t.raw.AppendOrderedItemsObject(i) + +} + +// PrependOrderedItems prepends an 'Object' typed value. +func (t *OrderedCollection) PrependOrderedItems(i vocab.ObjectType) { + t.raw.PrependOrderedItemsObject(i) + +} + +// AppendOrderedItemsLink appends a 'Link' typed value. +func (t *OrderedCollection) AppendOrderedItemsLink(i vocab.LinkType) { + t.raw.AppendOrderedItemsLink(i) + +} + +// PrependOrderedItemsLink prepends a 'Link' typed value. +func (t *OrderedCollection) PrependOrderedItemsLink(i vocab.LinkType) { + t.raw.PrependOrderedItemsLink(i) + +} + +// GetCurrent attempts to get this 'current' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetCurrent() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCurrentIRI() { + k = t.raw.GetCurrentIRI() + if handled { + r = Resolved + } + } else if t.raw.IsCurrentOrderedCollectionPage() { + r = RawResolutionNeeded + } else if t.raw.IsCurrentLink() { + r = RawResolutionNeeded + } + return + +} + +// HasCurrent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasCurrent() (p Presence) { + p = NoPresence + if t.raw.IsCurrentIRI() { + p = ConvenientPresence + } else if t.raw.IsCurrentOrderedCollectionPage() { + p = RawPresence + } else if t.raw.IsCurrentLink() { + p = RawPresence + } + return + +} + +// SetCurrent sets the value for property 'current'. +func (t *OrderedCollection) SetCurrent(k *url.URL) { + t.raw.SetCurrentIRI(k) + +} + +// GetFirst attempts to get this 'first' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetFirst() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsFirstIRI() { + k = t.raw.GetFirstIRI() + if handled { + r = Resolved + } + } else if t.raw.IsFirstOrderedCollectionPage() { + r = RawResolutionNeeded + } else if t.raw.IsFirstLink() { + r = RawResolutionNeeded + } + return + +} + +// HasFirst returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasFirst() (p Presence) { + p = NoPresence + if t.raw.IsFirstIRI() { + p = ConvenientPresence + } else if t.raw.IsFirstOrderedCollectionPage() { + p = RawPresence + } else if t.raw.IsFirstLink() { + p = RawPresence + } + return + +} + +// SetFirst sets the value for property 'first'. +func (t *OrderedCollection) SetFirst(k *url.URL) { + t.raw.SetFirstIRI(k) + +} + +// GetLast attempts to get this 'last' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetLast() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsLastIRI() { + k = t.raw.GetLastIRI() + if handled { + r = Resolved + } + } else if t.raw.IsLastOrderedCollectionPage() { + r = RawResolutionNeeded + } else if t.raw.IsLastLink() { + r = RawResolutionNeeded + } + return + +} + +// HasLast returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasLast() (p Presence) { + p = NoPresence + if t.raw.IsLastIRI() { + p = ConvenientPresence + } else if t.raw.IsLastOrderedCollectionPage() { + p = RawPresence + } else if t.raw.IsLastLink() { + p = RawPresence + } + return + +} + +// SetLast sets the value for property 'last'. +func (t *OrderedCollection) SetLast(k *url.URL) { + t.raw.SetLastIRI(k) + +} + +// GetTotalItems attempts to get this 'totalItems' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetTotalItems() (r Resolution, k int64) { + r = Unresolved + handled := false + if t.raw.IsTotalItems() { + k = t.raw.GetTotalItems() + if handled { + r = Resolved + } + } else if t.raw.IsTotalItemsIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasTotalItems returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasTotalItems() (p Presence) { + p = NoPresence + if t.raw.IsTotalItems() { + p = ConvenientPresence + } else if t.raw.IsTotalItemsIRI() { + p = RawPresence + } + return + +} + +// SetTotalItems sets the value for property 'totalItems'. +func (t *OrderedCollection) SetTotalItems(k int64) { + t.raw.SetTotalItems(k) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *OrderedCollection) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *OrderedCollection) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *OrderedCollection) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *OrderedCollection) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *OrderedCollection) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *OrderedCollection) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *OrderedCollection) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *OrderedCollection) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *OrderedCollection) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *OrderedCollection) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *OrderedCollection) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *OrderedCollection) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *OrderedCollection) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *OrderedCollection) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *OrderedCollection) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *OrderedCollection) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *OrderedCollection) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *OrderedCollection) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *OrderedCollection) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *OrderedCollection) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *OrderedCollection) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *OrderedCollection) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *OrderedCollection) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *OrderedCollection) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *OrderedCollection) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *OrderedCollection) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *OrderedCollection) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *OrderedCollection) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *OrderedCollection) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *OrderedCollection) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *OrderedCollection) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *OrderedCollection) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *OrderedCollection) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *OrderedCollection) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *OrderedCollection) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *OrderedCollection) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *OrderedCollection) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *OrderedCollection) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *OrderedCollection) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *OrderedCollection) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *OrderedCollection) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *OrderedCollection) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *OrderedCollection) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *OrderedCollection) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *OrderedCollection) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *OrderedCollection) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *OrderedCollection) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *OrderedCollection) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *OrderedCollection) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *OrderedCollection) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *OrderedCollection) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *OrderedCollection) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *OrderedCollection) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *OrderedCollection) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *OrderedCollection) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *OrderedCollection) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *OrderedCollection) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *OrderedCollection) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *OrderedCollection) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *OrderedCollection) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *OrderedCollection) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *OrderedCollection) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *OrderedCollection) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *OrderedCollection) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *OrderedCollection) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *OrderedCollection) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *OrderedCollection) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *OrderedCollection) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *OrderedCollection) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *OrderedCollection) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *OrderedCollection) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *OrderedCollection) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *OrderedCollection) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *OrderedCollection) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *OrderedCollection) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *OrderedCollection) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *OrderedCollection) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *OrderedCollection) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *OrderedCollection) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *OrderedCollection) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *OrderedCollection) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *OrderedCollection) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *OrderedCollection) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *OrderedCollection) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *OrderedCollection) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *OrderedCollection) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *OrderedCollection) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *OrderedCollection) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *OrderedCollection) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *OrderedCollection) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *OrderedCollection) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *OrderedCollection) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *OrderedCollection) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *OrderedCollection) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *OrderedCollection) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *OrderedCollection) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *OrderedCollection) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *OrderedCollection) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *OrderedCollection) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *OrderedCollection) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *OrderedCollection) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *OrderedCollection) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *OrderedCollection) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *OrderedCollection) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *OrderedCollection) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollection) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollection) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *OrderedCollection) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_orderedcollectionpage.go b/streams/gen_orderedcollectionpage.go new file mode 100644 index 0000000..ded226e --- /dev/null +++ b/streams/gen_orderedcollectionpage.go @@ -0,0 +1,2454 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Used to represent ordered subsets of items from an OrderedCollection. Refer to the Activity Streams 2.0 Core for a complete description of the OrderedCollectionPage object. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type OrderedCollectionPage struct { + // The raw type from the vocab package + raw *vocab.OrderedCollectionPage +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *OrderedCollectionPage) Raw() (n *vocab.OrderedCollectionPage) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *OrderedCollectionPage) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// GetStartIndex attempts to get this 'startIndex' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetStartIndex() (r Resolution, k int64) { + r = Unresolved + handled := false + if t.raw.IsStartIndex() { + k = t.raw.GetStartIndex() + if handled { + r = Resolved + } + } else if t.raw.IsStartIndexIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartIndex returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasStartIndex() (p Presence) { + p = NoPresence + if t.raw.IsStartIndex() { + p = ConvenientPresence + } else if t.raw.IsStartIndexIRI() { + p = RawPresence + } + return + +} + +// SetStartIndex sets the value for property 'startIndex'. +func (t *OrderedCollectionPage) SetStartIndex(k int64) { + t.raw.SetStartIndex(k) + +} + +// GetNext attempts to get this 'next' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetNext() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsNextIRI() { + k = t.raw.GetNextIRI() + if handled { + r = Resolved + } + } else if t.raw.IsNextOrderedCollectionPage() { + r = RawResolutionNeeded + } else if t.raw.IsNextLink() { + r = RawResolutionNeeded + } + return + +} + +// HasNext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasNext() (p Presence) { + p = NoPresence + if t.raw.IsNextIRI() { + p = ConvenientPresence + } else if t.raw.IsNextOrderedCollectionPage() { + p = RawPresence + } else if t.raw.IsNextLink() { + p = RawPresence + } + return + +} + +// SetNext sets the value for property 'next'. +func (t *OrderedCollectionPage) SetNext(k *url.URL) { + t.raw.SetNextIRI(k) + +} + +// GetPrev attempts to get this 'prev' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetPrev() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsPrevIRI() { + k = t.raw.GetPrevIRI() + if handled { + r = Resolved + } + } else if t.raw.IsPrevOrderedCollectionPage() { + r = RawResolutionNeeded + } else if t.raw.IsPrevLink() { + r = RawResolutionNeeded + } + return + +} + +// HasPrev returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasPrev() (p Presence) { + p = NoPresence + if t.raw.IsPrevIRI() { + p = ConvenientPresence + } else if t.raw.IsPrevOrderedCollectionPage() { + p = RawPresence + } else if t.raw.IsPrevLink() { + p = RawPresence + } + return + +} + +// SetPrev sets the value for property 'prev'. +func (t *OrderedCollectionPage) SetPrev(k *url.URL) { + t.raw.SetPrevIRI(k) + +} + +// LenOrderedItems returns the number of values this property contains. Each index be used with HasOrderedItems to determine if ResolveOrderedItems is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenOrderedItems() (idx int) { + return t.raw.OrderedItemsLen() + +} + +// ResolveOrderedItems passes the actual concrete type to the resolver for handing property orderedItems. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolveOrderedItems(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOrderedItemsObject(idx) { + handled, err = r.dispatch(t.raw.GetOrderedItemsObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOrderedItemsLink(idx) { + handled, err = r.dispatch(t.raw.GetOrderedItemsLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOrderedItemsIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrderedItems returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasOrderedItems(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOrderedItemsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOrderedItemsLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOrderedItemsIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrderedItems appends an 'Object' typed value. +func (t *OrderedCollectionPage) AppendOrderedItems(i vocab.ObjectType) { + t.raw.AppendOrderedItemsObject(i) + +} + +// PrependOrderedItems prepends an 'Object' typed value. +func (t *OrderedCollectionPage) PrependOrderedItems(i vocab.ObjectType) { + t.raw.PrependOrderedItemsObject(i) + +} + +// AppendOrderedItemsLink appends a 'Link' typed value. +func (t *OrderedCollectionPage) AppendOrderedItemsLink(i vocab.LinkType) { + t.raw.AppendOrderedItemsLink(i) + +} + +// PrependOrderedItemsLink prepends a 'Link' typed value. +func (t *OrderedCollectionPage) PrependOrderedItemsLink(i vocab.LinkType) { + t.raw.PrependOrderedItemsLink(i) + +} + +// GetCurrent attempts to get this 'current' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetCurrent() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCurrentIRI() { + k = t.raw.GetCurrentIRI() + if handled { + r = Resolved + } + } else if t.raw.IsCurrentOrderedCollectionPage() { + r = RawResolutionNeeded + } else if t.raw.IsCurrentLink() { + r = RawResolutionNeeded + } + return + +} + +// HasCurrent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasCurrent() (p Presence) { + p = NoPresence + if t.raw.IsCurrentIRI() { + p = ConvenientPresence + } else if t.raw.IsCurrentOrderedCollectionPage() { + p = RawPresence + } else if t.raw.IsCurrentLink() { + p = RawPresence + } + return + +} + +// SetCurrent sets the value for property 'current'. +func (t *OrderedCollectionPage) SetCurrent(k *url.URL) { + t.raw.SetCurrentIRI(k) + +} + +// GetFirst attempts to get this 'first' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetFirst() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsFirstIRI() { + k = t.raw.GetFirstIRI() + if handled { + r = Resolved + } + } else if t.raw.IsFirstOrderedCollectionPage() { + r = RawResolutionNeeded + } else if t.raw.IsFirstLink() { + r = RawResolutionNeeded + } + return + +} + +// HasFirst returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasFirst() (p Presence) { + p = NoPresence + if t.raw.IsFirstIRI() { + p = ConvenientPresence + } else if t.raw.IsFirstOrderedCollectionPage() { + p = RawPresence + } else if t.raw.IsFirstLink() { + p = RawPresence + } + return + +} + +// SetFirst sets the value for property 'first'. +func (t *OrderedCollectionPage) SetFirst(k *url.URL) { + t.raw.SetFirstIRI(k) + +} + +// GetLast attempts to get this 'last' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetLast() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsLastIRI() { + k = t.raw.GetLastIRI() + if handled { + r = Resolved + } + } else if t.raw.IsLastOrderedCollectionPage() { + r = RawResolutionNeeded + } else if t.raw.IsLastLink() { + r = RawResolutionNeeded + } + return + +} + +// HasLast returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasLast() (p Presence) { + p = NoPresence + if t.raw.IsLastIRI() { + p = ConvenientPresence + } else if t.raw.IsLastOrderedCollectionPage() { + p = RawPresence + } else if t.raw.IsLastLink() { + p = RawPresence + } + return + +} + +// SetLast sets the value for property 'last'. +func (t *OrderedCollectionPage) SetLast(k *url.URL) { + t.raw.SetLastIRI(k) + +} + +// GetTotalItems attempts to get this 'totalItems' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetTotalItems() (r Resolution, k int64) { + r = Unresolved + handled := false + if t.raw.IsTotalItems() { + k = t.raw.GetTotalItems() + if handled { + r = Resolved + } + } else if t.raw.IsTotalItemsIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasTotalItems returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasTotalItems() (p Presence) { + p = NoPresence + if t.raw.IsTotalItems() { + p = ConvenientPresence + } else if t.raw.IsTotalItemsIRI() { + p = RawPresence + } + return + +} + +// SetTotalItems sets the value for property 'totalItems'. +func (t *OrderedCollectionPage) SetTotalItems(k int64) { + t.raw.SetTotalItems(k) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *OrderedCollectionPage) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *OrderedCollectionPage) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *OrderedCollectionPage) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *OrderedCollectionPage) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *OrderedCollectionPage) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *OrderedCollectionPage) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *OrderedCollectionPage) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *OrderedCollectionPage) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *OrderedCollectionPage) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *OrderedCollectionPage) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *OrderedCollectionPage) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *OrderedCollectionPage) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *OrderedCollectionPage) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *OrderedCollectionPage) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *OrderedCollectionPage) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *OrderedCollectionPage) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *OrderedCollectionPage) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *OrderedCollectionPage) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *OrderedCollectionPage) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *OrderedCollectionPage) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *OrderedCollectionPage) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *OrderedCollectionPage) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *OrderedCollectionPage) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *OrderedCollectionPage) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *OrderedCollectionPage) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *OrderedCollectionPage) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *OrderedCollectionPage) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *OrderedCollectionPage) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *OrderedCollectionPage) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *OrderedCollectionPage) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *OrderedCollectionPage) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *OrderedCollectionPage) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *OrderedCollectionPage) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *OrderedCollectionPage) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *OrderedCollectionPage) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *OrderedCollectionPage) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *OrderedCollectionPage) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *OrderedCollectionPage) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *OrderedCollectionPage) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *OrderedCollectionPage) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *OrderedCollectionPage) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *OrderedCollectionPage) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *OrderedCollectionPage) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *OrderedCollectionPage) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *OrderedCollectionPage) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *OrderedCollectionPage) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *OrderedCollectionPage) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *OrderedCollectionPage) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *OrderedCollectionPage) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *OrderedCollectionPage) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *OrderedCollectionPage) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *OrderedCollectionPage) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *OrderedCollectionPage) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *OrderedCollectionPage) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *OrderedCollectionPage) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *OrderedCollectionPage) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *OrderedCollectionPage) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *OrderedCollectionPage) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *OrderedCollectionPage) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *OrderedCollectionPage) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *OrderedCollectionPage) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *OrderedCollectionPage) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *OrderedCollectionPage) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *OrderedCollectionPage) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *OrderedCollectionPage) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *OrderedCollectionPage) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *OrderedCollectionPage) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *OrderedCollectionPage) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *OrderedCollectionPage) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *OrderedCollectionPage) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *OrderedCollectionPage) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *OrderedCollectionPage) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *OrderedCollectionPage) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *OrderedCollectionPage) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *OrderedCollectionPage) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *OrderedCollectionPage) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *OrderedCollectionPage) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *OrderedCollectionPage) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *OrderedCollectionPage) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *OrderedCollectionPage) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *OrderedCollectionPage) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *OrderedCollectionPage) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *OrderedCollectionPage) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *OrderedCollectionPage) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *OrderedCollectionPage) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *OrderedCollectionPage) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *OrderedCollectionPage) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *OrderedCollectionPage) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *OrderedCollectionPage) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *OrderedCollectionPage) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *OrderedCollectionPage) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *OrderedCollectionPage) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *OrderedCollectionPage) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *OrderedCollectionPage) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *OrderedCollectionPage) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *OrderedCollectionPage) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *OrderedCollectionPage) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *OrderedCollectionPage) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *OrderedCollectionPage) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *OrderedCollectionPage) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *OrderedCollectionPage) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *OrderedCollectionPage) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *OrderedCollectionPage) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *OrderedCollectionPage) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *OrderedCollectionPage) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *OrderedCollectionPage) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *OrderedCollectionPage) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} + +// ResolvePartOf passes the actual concrete type to the resolver for handing property partOf. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) ResolvePartOf(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPartOfLink() { + handled, err = r.dispatch(t.raw.GetPartOfLink()) + if handled { + s = Resolved + } + } else if t.raw.IsPartOfCollection() { + s = RawResolutionNeeded + } else if t.raw.IsPartOfIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasPartOf returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *OrderedCollectionPage) HasPartOf() (p Presence) { + p = NoPresence + if t.raw.IsPartOfLink() { + p = ConvenientPresence + } else if t.raw.IsPartOfCollection() { + p = RawPresence + } else if t.raw.IsPartOfIRI() { + p = RawPresence + } + return + +} + +// SetPartOf sets this value to be a 'Link' type. +func (t *OrderedCollectionPage) SetPartOf(i vocab.LinkType) { + t.raw.SetPartOfLink(i) + +} diff --git a/streams/gen_organization.go b/streams/gen_organization.go new file mode 100644 index 0000000..0c6a76e --- /dev/null +++ b/streams/gen_organization.go @@ -0,0 +1,2093 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Represents an organization. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Organization struct { + // The raw type from the vocab package + raw *vocab.Organization +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Organization) Raw() (n *vocab.Organization) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Organization) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Organization) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Organization) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Organization) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Organization) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Organization) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Organization) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Organization) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Organization) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Organization) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Organization) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Organization) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Organization) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Organization) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Organization) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Organization) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Organization) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Organization) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Organization) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Organization) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Organization) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Organization) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Organization) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Organization) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Organization) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Organization) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Organization) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Organization) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Organization) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Organization) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Organization) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Organization) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Organization) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Organization) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Organization) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Organization) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Organization) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Organization) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Organization) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Organization) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Organization) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Organization) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Organization) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Organization) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Organization) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Organization) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Organization) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Organization) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Organization) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Organization) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Organization) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Organization) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Organization) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Organization) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Organization) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Organization) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Organization) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Organization) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Organization) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Organization) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Organization) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Organization) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Organization) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Organization) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Organization) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Organization) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Organization) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Organization) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Organization) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Organization) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Organization) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Organization) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Organization) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Organization) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Organization) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Organization) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Organization) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Organization) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Organization) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Organization) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Organization) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Organization) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Organization) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Organization) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Organization) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Organization) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Organization) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Organization) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Organization) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Organization) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Organization) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Organization) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Organization) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Organization) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Organization) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Organization) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Organization) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Organization) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Organization) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Organization) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Organization) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Organization) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Organization) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Organization) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Organization) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Organization) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Organization) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Organization) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Organization) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Organization) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Organization) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Organization) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Organization) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Organization) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Organization) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Organization) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Organization) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Organization) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Organization) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Organization) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Organization) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Organization) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Organization) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Organization) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Organization) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Organization) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Organization) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Organization) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Organization) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_page.go b/streams/gen_page.go new file mode 100644 index 0000000..181bb4d --- /dev/null +++ b/streams/gen_page.go @@ -0,0 +1,2093 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Represents a Web Page. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Page struct { + // The raw type from the vocab package + raw *vocab.Page +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Page) Raw() (n *vocab.Page) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Page) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Page) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Page) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Page) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Page) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Page) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Page) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Page) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Page) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Page) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Page) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Page) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Page) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Page) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Page) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Page) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Page) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Page) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Page) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Page) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Page) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Page) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Page) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Page) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Page) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Page) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Page) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Page) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Page) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Page) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Page) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Page) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Page) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Page) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Page) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Page) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Page) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Page) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Page) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Page) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Page) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Page) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Page) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Page) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Page) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Page) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Page) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Page) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Page) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Page) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Page) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Page) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Page) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Page) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Page) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Page) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Page) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Page) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Page) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Page) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Page) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Page) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Page) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Page) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Page) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Page) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Page) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Page) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Page) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Page) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Page) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Page) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Page) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Page) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Page) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Page) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Page) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Page) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Page) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Page) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Page) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Page) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Page) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Page) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Page) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Page) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Page) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Page) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Page) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Page) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Page) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Page) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Page) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Page) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Page) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Page) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Page) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Page) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Page) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Page) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Page) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Page) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Page) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Page) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Page) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Page) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Page) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Page) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Page) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Page) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Page) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Page) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Page) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Page) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Page) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Page) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Page) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Page) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Page) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Page) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Page) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Page) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Page) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Page) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Page) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Page) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Page) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Page) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Page) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_person.go b/streams/gen_person.go new file mode 100644 index 0000000..1b5a4e6 --- /dev/null +++ b/streams/gen_person.go @@ -0,0 +1,2093 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Represents an individual person. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Person struct { + // The raw type from the vocab package + raw *vocab.Person +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Person) Raw() (n *vocab.Person) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Person) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Person) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Person) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Person) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Person) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Person) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Person) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Person) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Person) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Person) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Person) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Person) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Person) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Person) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Person) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Person) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Person) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Person) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Person) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Person) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Person) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Person) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Person) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Person) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Person) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Person) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Person) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Person) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Person) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Person) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Person) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Person) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Person) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Person) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Person) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Person) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Person) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Person) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Person) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Person) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Person) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Person) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Person) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Person) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Person) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Person) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Person) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Person) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Person) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Person) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Person) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Person) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Person) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Person) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Person) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Person) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Person) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Person) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Person) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Person) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Person) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Person) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Person) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Person) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Person) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Person) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Person) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Person) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Person) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Person) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Person) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Person) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Person) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Person) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Person) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Person) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Person) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Person) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Person) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Person) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Person) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Person) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Person) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Person) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Person) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Person) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Person) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Person) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Person) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Person) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Person) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Person) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Person) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Person) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Person) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Person) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Person) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Person) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Person) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Person) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Person) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Person) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Person) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Person) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Person) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Person) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Person) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Person) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Person) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Person) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Person) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Person) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Person) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Person) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Person) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Person) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Person) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Person) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Person) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Person) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Person) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Person) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Person) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Person) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Person) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Person) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Person) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Person) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Person) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_place.go b/streams/gen_place.go new file mode 100644 index 0000000..e0024c8 --- /dev/null +++ b/streams/gen_place.go @@ -0,0 +1,2263 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Represents a logical or physical location. See 5.3 Representing Places for additional information. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Place struct { + // The raw type from the vocab package + raw *vocab.Place +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Place) Raw() (n *vocab.Place) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Place) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// GetAccuracy attempts to get this 'accuracy' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetAccuracy() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAccuracy() { + k = t.raw.GetAccuracy() + if handled { + r = Resolved + } + } else if t.raw.IsAccuracyIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAccuracy returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasAccuracy() (p Presence) { + p = NoPresence + if t.raw.IsAccuracy() { + p = ConvenientPresence + } else if t.raw.IsAccuracyIRI() { + p = RawPresence + } + return + +} + +// SetAccuracy sets the value for property 'accuracy'. +func (t *Place) SetAccuracy(k float64) { + t.raw.SetAccuracy(k) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Place) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// GetLatitude attempts to get this 'latitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetLatitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsLatitude() { + k = t.raw.GetLatitude() + if handled { + r = Resolved + } + } else if t.raw.IsLatitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasLatitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasLatitude() (p Presence) { + p = NoPresence + if t.raw.IsLatitude() { + p = ConvenientPresence + } else if t.raw.IsLatitudeIRI() { + p = RawPresence + } + return + +} + +// SetLatitude sets the value for property 'latitude'. +func (t *Place) SetLatitude(k float64) { + t.raw.SetLatitude(k) + +} + +// GetLongitude attempts to get this 'longitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetLongitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsLongitude() { + k = t.raw.GetLongitude() + if handled { + r = Resolved + } + } else if t.raw.IsLongitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasLongitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasLongitude() (p Presence) { + p = NoPresence + if t.raw.IsLongitude() { + p = ConvenientPresence + } else if t.raw.IsLongitudeIRI() { + p = RawPresence + } + return + +} + +// SetLongitude sets the value for property 'longitude'. +func (t *Place) SetLongitude(k float64) { + t.raw.SetLongitude(k) + +} + +// GetRadius attempts to get this 'radius' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetRadius() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsRadius() { + k = t.raw.GetRadius() + if handled { + r = Resolved + } + } else if t.raw.IsRadiusIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasRadius returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasRadius() (p Presence) { + p = NoPresence + if t.raw.IsRadius() { + p = ConvenientPresence + } else if t.raw.IsRadiusIRI() { + p = RawPresence + } + return + +} + +// SetRadius sets the value for property 'radius'. +func (t *Place) SetRadius(k float64) { + t.raw.SetRadius(k) + +} + +// GetUnits attempts to get this 'units' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetUnits() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsUnitsUnitsValue() { + k = t.raw.GetUnitsUnitsValue() + if handled { + r = Resolved + } + } else if t.raw.IsUnitsAnyURI() { + r = RawResolutionNeeded + } + return + +} + +// HasUnits returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasUnits() (p Presence) { + p = NoPresence + if t.raw.IsUnitsUnitsValue() { + p = ConvenientPresence + } else if t.raw.IsUnitsAnyURI() { + p = RawPresence + } + return + +} + +// SetUnits sets the value for property 'units'. +func (t *Place) SetUnits(k string) { + t.raw.SetUnitsUnitsValue(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Place) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Place) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Place) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Place) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Place) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Place) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Place) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Place) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Place) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Place) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Place) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Place) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Place) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Place) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Place) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Place) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Place) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Place) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Place) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Place) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Place) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Place) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Place) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Place) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Place) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Place) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Place) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Place) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Place) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Place) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Place) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Place) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Place) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Place) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Place) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Place) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Place) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Place) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Place) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Place) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Place) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Place) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Place) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Place) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Place) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Place) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Place) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Place) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Place) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Place) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Place) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Place) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Place) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Place) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Place) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Place) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Place) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Place) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Place) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Place) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Place) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Place) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Place) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Place) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Place) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Place) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Place) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Place) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Place) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Place) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Place) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Place) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Place) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Place) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Place) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Place) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Place) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Place) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Place) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Place) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Place) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Place) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Place) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Place) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Place) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Place) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Place) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Place) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Place) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Place) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Place) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Place) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Place) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Place) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Place) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Place) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Place) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Place) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Place) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Place) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Place) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Place) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Place) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Place) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Place) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Place) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Place) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Place) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Place) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Place) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Place) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Place) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Place) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Place) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Place) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Place) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Place) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Place) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Place) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Place) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Place) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Place) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Place) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Place) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Place) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Place) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Place) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_profile.go b/streams/gen_profile.go new file mode 100644 index 0000000..8c9645e --- /dev/null +++ b/streams/gen_profile.go @@ -0,0 +1,2127 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// A Profile is a content object that describes another Object, typically used to describe Actor Type objects. The describes property is used to reference the object being described by the profile. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Profile struct { + // The raw type from the vocab package + raw *vocab.Profile +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Profile) Raw() (n *vocab.Profile) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Profile) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// ResolveDescribes passes the actual concrete type to the resolver for handing property describes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolveDescribes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsDescribes() { + handled, err = r.dispatch(t.raw.GetDescribes()) + if handled { + s = Resolved + } + } else if t.raw.IsDescribesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasDescribes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasDescribes() (p Presence) { + p = NoPresence + if t.raw.IsDescribes() { + p = ConvenientPresence + } else if t.raw.IsDescribesIRI() { + p = RawPresence + } + return + +} + +// SetDescribes sets this value to be a 'Object' type. +func (t *Profile) SetDescribes(i vocab.ObjectType) { + t.raw.SetDescribes(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Profile) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Profile) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Profile) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Profile) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Profile) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Profile) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Profile) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Profile) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Profile) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Profile) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Profile) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Profile) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Profile) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Profile) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Profile) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Profile) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Profile) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Profile) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Profile) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Profile) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Profile) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Profile) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Profile) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Profile) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Profile) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Profile) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Profile) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Profile) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Profile) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Profile) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Profile) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Profile) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Profile) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Profile) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Profile) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Profile) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Profile) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Profile) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Profile) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Profile) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Profile) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Profile) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Profile) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Profile) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Profile) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Profile) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Profile) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Profile) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Profile) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Profile) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Profile) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Profile) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Profile) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Profile) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Profile) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Profile) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Profile) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Profile) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Profile) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Profile) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Profile) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Profile) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Profile) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Profile) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Profile) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Profile) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Profile) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Profile) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Profile) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Profile) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Profile) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Profile) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Profile) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Profile) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Profile) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Profile) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Profile) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Profile) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Profile) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Profile) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Profile) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Profile) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Profile) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Profile) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Profile) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Profile) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Profile) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Profile) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Profile) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Profile) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Profile) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Profile) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Profile) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Profile) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Profile) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Profile) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Profile) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Profile) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Profile) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Profile) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Profile) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Profile) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Profile) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Profile) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Profile) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Profile) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Profile) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Profile) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Profile) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Profile) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Profile) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Profile) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Profile) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Profile) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Profile) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Profile) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Profile) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Profile) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Profile) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Profile) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Profile) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Profile) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Profile) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Profile) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Profile) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Profile) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Profile) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Profile) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_question.go b/streams/gen_question.go new file mode 100644 index 0000000..1cc878c --- /dev/null +++ b/streams/gen_question.go @@ -0,0 +1,2594 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Represents a question being asked. Question objects are an extension of IntransitiveActivity. That is, the Question object is an Activity, but the direct object is the question itself and therefore it would not contain an object property. Either of the anyOf and oneOf properties may be used to express possible answers, but a Question object must not have both properties. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Question struct { + // The raw type from the vocab package + raw *vocab.Question +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Question) Raw() (n *vocab.Question) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Question) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenOneOf returns the number of values this property contains. Each index be used with HasOneOf to determine if ResolveOneOf is safe to call or if raw handling would be needed. +func (t *Question) LenOneOf() (idx int) { + return t.raw.OneOfLen() + +} + +// ResolveOneOf passes the actual concrete type to the resolver for handing property oneOf. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveOneOf(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOneOfObject(idx) { + handled, err = r.dispatch(t.raw.GetOneOfObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOneOfLink(idx) { + handled, err = r.dispatch(t.raw.GetOneOfLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOneOfIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOneOf returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasOneOf(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOneOfObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOneOfLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOneOfIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOneOf appends an 'Object' typed value. +func (t *Question) AppendOneOf(i vocab.ObjectType) { + t.raw.AppendOneOfObject(i) + +} + +// PrependOneOf prepends an 'Object' typed value. +func (t *Question) PrependOneOf(i vocab.ObjectType) { + t.raw.PrependOneOfObject(i) + +} + +// AppendOneOfLink appends a 'Link' typed value. +func (t *Question) AppendOneOfLink(i vocab.LinkType) { + t.raw.AppendOneOfLink(i) + +} + +// PrependOneOfLink prepends a 'Link' typed value. +func (t *Question) PrependOneOfLink(i vocab.LinkType) { + t.raw.PrependOneOfLink(i) + +} + +// LenAnyOf returns the number of values this property contains. Each index be used with HasAnyOf to determine if ResolveAnyOf is safe to call or if raw handling would be needed. +func (t *Question) LenAnyOf() (idx int) { + return t.raw.AnyOfLen() + +} + +// ResolveAnyOf passes the actual concrete type to the resolver for handing property anyOf. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveAnyOf(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAnyOfObject(idx) { + handled, err = r.dispatch(t.raw.GetAnyOfObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAnyOfLink(idx) { + handled, err = r.dispatch(t.raw.GetAnyOfLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAnyOfIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAnyOf returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasAnyOf(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAnyOfObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAnyOfLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAnyOfIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAnyOf appends an 'Object' typed value. +func (t *Question) AppendAnyOf(i vocab.ObjectType) { + t.raw.AppendAnyOfObject(i) + +} + +// PrependAnyOf prepends an 'Object' typed value. +func (t *Question) PrependAnyOf(i vocab.ObjectType) { + t.raw.PrependAnyOfObject(i) + +} + +// AppendAnyOfLink appends a 'Link' typed value. +func (t *Question) AppendAnyOfLink(i vocab.LinkType) { + t.raw.AppendAnyOfLink(i) + +} + +// PrependAnyOfLink prepends a 'Link' typed value. +func (t *Question) PrependAnyOfLink(i vocab.LinkType) { + t.raw.PrependAnyOfLink(i) + +} + +// LenClosed returns the number of values this property contains. Each index be used with HasClosed to determine if GetClosed is safe to call or if raw handling would be needed. +func (t *Question) LenClosed() (idx int) { + return t.raw.ClosedLen() + +} + +// GetClosed attempts to get this 'closed' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetClosed(idx int) (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsClosedDateTime(idx) { + k = t.raw.GetClosedDateTime(idx) + if handled { + r = Resolved + } + } else if t.raw.IsClosedBoolean(idx) { + r = RawResolutionNeeded + } else if t.raw.IsClosedObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsClosedLink(idx) { + r = RawResolutionNeeded + } else if t.raw.IsClosedIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendClosed appends the value for property 'closed'. +func (t *Question) AppendClosed(k time.Time) { + t.raw.AppendClosedDateTime(k) + +} + +// PrependClosed prepends the value for property 'closed'. +func (t *Question) PrependClosed(k time.Time) { + t.raw.PrependClosedDateTime(k) + +} + +// RemoveClosed deletes the value from the specified index for property 'closed'. +func (t *Question) RemoveClosed(idx int) { + t.raw.RemoveClosedDateTime(idx) + +} + +// HasClosed returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasClosed(idx int) (p Presence) { + p = NoPresence + if t.raw.IsClosedDateTime(idx) { + p = ConvenientPresence + } else if t.raw.IsClosedBoolean(idx) { + p = RawPresence + } else if t.raw.IsClosedObject(idx) { + p = RawPresence + } else if t.raw.IsClosedLink(idx) { + p = RawPresence + } else if t.raw.IsClosedIRI(idx) { + p = RawPresence + } + return + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Question) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Question) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Question) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Question) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Question) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Question) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Question) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Question) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Question) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Question) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Question) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Question) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Question) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Question) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Question) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Question) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Question) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Question) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Question) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Question) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Question) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Question) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Question) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Question) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Question) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Question) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Question) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Question) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Question) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Question) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Question) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Question) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Question) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Question) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Question) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Question) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Question) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Question) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Question) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Question) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Question) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Question) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Question) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Question) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Question) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Question) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Question) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Question) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Question) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Question) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Question) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Question) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Question) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Question) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Question) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Question) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Question) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Question) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Question) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Question) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Question) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Question) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Question) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Question) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Question) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Question) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Question) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Question) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Question) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Question) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Question) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Question) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Question) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Question) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Question) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Question) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Question) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Question) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Question) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Question) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Question) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Question) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Question) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Question) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Question) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Question) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Question) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Question) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Question) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Question) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Question) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Question) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Question) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Question) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Question) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Question) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Question) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Question) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Question) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Question) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Question) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Question) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Question) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Question) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Question) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Question) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Question) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Question) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Question) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Question) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Question) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Question) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Question) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Question) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Question) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Question) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Question) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Question) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Question) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Question) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Question) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Question) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Question) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Question) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Question) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Question) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Question) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Question) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Question) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Question) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Question) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Question) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Question) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Question) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Question) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Question) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Question) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Question) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Question) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Question) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Question) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Question) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Question) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Question) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Question) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Question) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Question) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Question) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Question) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Question) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Question) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_read.go b/streams/gen_read.go new file mode 100644 index 0000000..9b482b6 --- /dev/null +++ b/streams/gen_read.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor has read the object. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Read struct { + // The raw type from the vocab package + raw *vocab.Read +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Read) Raw() (n *vocab.Read) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Read) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Read) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Read) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Read) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Read) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Read) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Read) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Read) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Read) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Read) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Read) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Read) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Read) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Read) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Read) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Read) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Read) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Read) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Read) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Read) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Read) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Read) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Read) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Read) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Read) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Read) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Read) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Read) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Read) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Read) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Read) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Read) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Read) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Read) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Read) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Read) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Read) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Read) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Read) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Read) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Read) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Read) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Read) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Read) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Read) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Read) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Read) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Read) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Read) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Read) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Read) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Read) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Read) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Read) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Read) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Read) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Read) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Read) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Read) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Read) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Read) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Read) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Read) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Read) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Read) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Read) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Read) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Read) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Read) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Read) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Read) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Read) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Read) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Read) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Read) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Read) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Read) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Read) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Read) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Read) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Read) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Read) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Read) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Read) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Read) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Read) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Read) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Read) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Read) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Read) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Read) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Read) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Read) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Read) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Read) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Read) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Read) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Read) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Read) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Read) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Read) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Read) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Read) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Read) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Read) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Read) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Read) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Read) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Read) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Read) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Read) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Read) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Read) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Read) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Read) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Read) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Read) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Read) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Read) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Read) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Read) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Read) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Read) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Read) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Read) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Read) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Read) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Read) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Read) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Read) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Read) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Read) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Read) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Read) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Read) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Read) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Read) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Read) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Read) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Read) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Read) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Read) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Read) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Read) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Read) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Read) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Read) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Read) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Read) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Read) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Read) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Read) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Read) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Read) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Read) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Read) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_reject.go b/streams/gen_reject.go new file mode 100644 index 0000000..dda0e7c --- /dev/null +++ b/streams/gen_reject.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor is rejecting the object. The target and origin typically have no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Reject struct { + // The raw type from the vocab package + raw *vocab.Reject +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Reject) Raw() (n *vocab.Reject) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Reject) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Reject) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Reject) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Reject) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Reject) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Reject) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Reject) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Reject) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Reject) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Reject) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Reject) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Reject) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Reject) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Reject) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Reject) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Reject) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Reject) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Reject) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Reject) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Reject) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Reject) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Reject) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Reject) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Reject) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Reject) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Reject) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Reject) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Reject) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Reject) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Reject) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Reject) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Reject) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Reject) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Reject) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Reject) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Reject) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Reject) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Reject) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Reject) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Reject) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Reject) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Reject) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Reject) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Reject) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Reject) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Reject) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Reject) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Reject) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Reject) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Reject) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Reject) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Reject) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Reject) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Reject) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Reject) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Reject) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Reject) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Reject) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Reject) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Reject) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Reject) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Reject) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Reject) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Reject) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Reject) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Reject) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Reject) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Reject) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Reject) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Reject) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Reject) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Reject) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Reject) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Reject) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Reject) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Reject) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Reject) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Reject) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Reject) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Reject) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Reject) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Reject) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Reject) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Reject) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Reject) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Reject) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Reject) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Reject) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Reject) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Reject) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Reject) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Reject) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Reject) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Reject) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Reject) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Reject) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Reject) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Reject) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Reject) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Reject) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Reject) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Reject) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Reject) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Reject) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Reject) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Reject) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Reject) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Reject) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Reject) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Reject) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Reject) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Reject) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Reject) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Reject) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Reject) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Reject) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Reject) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Reject) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Reject) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Reject) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Reject) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Reject) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Reject) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Reject) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Reject) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Reject) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Reject) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Reject) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Reject) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Reject) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Reject) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Reject) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Reject) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Reject) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Reject) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Reject) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Reject) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Reject) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Reject) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Reject) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Reject) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Reject) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Reject) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Reject) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Reject) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Reject) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Reject) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Reject) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Reject) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Reject) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Reject) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Reject) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Reject) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Reject) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Reject) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Reject) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_relationship.go b/streams/gen_relationship.go new file mode 100644 index 0000000..0e11ffd --- /dev/null +++ b/streams/gen_relationship.go @@ -0,0 +1,2226 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Describes a relationship between two individuals. The subject and object properties are used to identify the connected individuals. See 5.2 Representing Relationships Between Entities for additional information. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Relationship struct { + // The raw type from the vocab package + raw *vocab.Relationship +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Relationship) Raw() (n *vocab.Relationship) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Relationship) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// ResolveSubject passes the actual concrete type to the resolver for handing property subject. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveSubject(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSubjectObject() { + handled, err = r.dispatch(t.raw.GetSubjectObject()) + if handled { + s = Resolved + } + } else if t.raw.IsSubjectLink() { + handled, err = r.dispatch(t.raw.GetSubjectLink()) + if handled { + s = Resolved + } + } else if t.raw.IsSubjectIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSubject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasSubject() (p Presence) { + p = NoPresence + if t.raw.IsSubjectObject() { + p = ConvenientPresence + } else if t.raw.IsSubjectLink() { + p = ConvenientPresence + } else if t.raw.IsSubjectIRI() { + p = RawPresence + } + return + +} + +// SetSubject sets this value to be an 'Object' type. +func (t *Relationship) SetSubject(i vocab.ObjectType) { + t.raw.SetSubjectObject(i) + +} + +// SetSubjectLink sets this value to be an 'Link' type. +func (t *Relationship) SetSubjectLink(i vocab.LinkType) { + t.raw.SetSubjectLink(i) + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Relationship) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Relationship) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Relationship) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Relationship) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// ResolveRelationship passes the actual concrete type to the resolver for handing property relationship. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveRelationship(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsRelationship() { + handled, err = r.dispatch(t.raw.GetRelationship()) + if handled { + s = Resolved + } + } else if t.raw.IsRelationshipIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasRelationship returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasRelationship() (p Presence) { + p = NoPresence + if t.raw.IsRelationship() { + p = ConvenientPresence + } else if t.raw.IsRelationshipIRI() { + p = RawPresence + } + return + +} + +// SetRelationship sets this value to be a 'Object' type. +func (t *Relationship) SetRelationship(i vocab.ObjectType) { + t.raw.SetRelationship(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Relationship) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Relationship) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Relationship) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Relationship) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Relationship) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Relationship) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Relationship) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Relationship) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Relationship) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Relationship) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Relationship) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Relationship) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Relationship) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Relationship) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Relationship) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Relationship) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Relationship) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Relationship) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Relationship) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Relationship) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Relationship) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Relationship) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Relationship) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Relationship) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Relationship) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Relationship) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Relationship) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Relationship) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Relationship) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Relationship) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Relationship) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Relationship) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Relationship) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Relationship) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Relationship) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Relationship) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Relationship) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Relationship) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Relationship) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Relationship) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Relationship) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Relationship) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Relationship) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Relationship) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Relationship) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Relationship) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Relationship) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Relationship) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Relationship) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Relationship) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Relationship) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Relationship) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Relationship) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Relationship) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Relationship) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Relationship) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Relationship) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Relationship) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Relationship) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Relationship) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Relationship) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Relationship) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Relationship) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Relationship) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Relationship) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Relationship) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Relationship) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Relationship) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Relationship) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Relationship) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Relationship) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Relationship) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Relationship) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Relationship) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Relationship) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Relationship) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Relationship) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Relationship) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Relationship) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Relationship) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Relationship) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Relationship) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Relationship) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Relationship) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Relationship) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Relationship) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Relationship) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Relationship) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Relationship) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Relationship) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Relationship) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Relationship) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Relationship) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Relationship) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Relationship) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Relationship) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Relationship) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Relationship) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Relationship) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Relationship) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Relationship) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Relationship) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Relationship) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Relationship) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Relationship) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Relationship) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Relationship) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Relationship) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Relationship) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Relationship) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Relationship) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Relationship) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Relationship) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Relationship) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Relationship) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Relationship) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Relationship) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Relationship) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Relationship) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Relationship) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Relationship) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Relationship) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Relationship) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Relationship) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Relationship) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Relationship) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Relationship) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Relationship) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_remove.go b/streams/gen_remove.go new file mode 100644 index 0000000..91bd7f3 --- /dev/null +++ b/streams/gen_remove.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor is removing the object. If specified, the origin indicates the context from which the object is being removed. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Remove struct { + // The raw type from the vocab package + raw *vocab.Remove +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Remove) Raw() (n *vocab.Remove) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Remove) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Remove) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Remove) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Remove) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Remove) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Remove) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Remove) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Remove) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Remove) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Remove) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Remove) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Remove) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Remove) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Remove) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Remove) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Remove) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Remove) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Remove) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Remove) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Remove) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Remove) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Remove) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Remove) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Remove) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Remove) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Remove) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Remove) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Remove) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Remove) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Remove) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Remove) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Remove) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Remove) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Remove) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Remove) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Remove) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Remove) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Remove) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Remove) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Remove) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Remove) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Remove) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Remove) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Remove) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Remove) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Remove) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Remove) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Remove) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Remove) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Remove) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Remove) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Remove) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Remove) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Remove) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Remove) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Remove) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Remove) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Remove) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Remove) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Remove) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Remove) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Remove) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Remove) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Remove) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Remove) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Remove) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Remove) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Remove) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Remove) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Remove) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Remove) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Remove) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Remove) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Remove) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Remove) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Remove) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Remove) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Remove) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Remove) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Remove) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Remove) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Remove) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Remove) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Remove) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Remove) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Remove) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Remove) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Remove) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Remove) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Remove) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Remove) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Remove) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Remove) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Remove) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Remove) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Remove) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Remove) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Remove) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Remove) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Remove) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Remove) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Remove) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Remove) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Remove) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Remove) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Remove) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Remove) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Remove) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Remove) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Remove) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Remove) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Remove) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Remove) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Remove) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Remove) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Remove) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Remove) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Remove) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Remove) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Remove) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Remove) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Remove) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Remove) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Remove) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Remove) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Remove) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Remove) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Remove) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Remove) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Remove) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Remove) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Remove) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Remove) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Remove) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Remove) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Remove) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Remove) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Remove) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Remove) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Remove) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Remove) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Remove) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Remove) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Remove) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Remove) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Remove) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Remove) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Remove) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Remove) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Remove) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Remove) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Remove) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Remove) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Remove) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Remove) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Remove) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_service.go b/streams/gen_service.go new file mode 100644 index 0000000..2af2ccd --- /dev/null +++ b/streams/gen_service.go @@ -0,0 +1,2093 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Represents a service of any kind. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Service struct { + // The raw type from the vocab package + raw *vocab.Service +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Service) Raw() (n *vocab.Service) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Service) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Service) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Service) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Service) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Service) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Service) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Service) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Service) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Service) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Service) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Service) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Service) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Service) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Service) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Service) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Service) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Service) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Service) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Service) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Service) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Service) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Service) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Service) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Service) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Service) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Service) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Service) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Service) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Service) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Service) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Service) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Service) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Service) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Service) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Service) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Service) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Service) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Service) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Service) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Service) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Service) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Service) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Service) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Service) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Service) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Service) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Service) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Service) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Service) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Service) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Service) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Service) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Service) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Service) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Service) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Service) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Service) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Service) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Service) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Service) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Service) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Service) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Service) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Service) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Service) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Service) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Service) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Service) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Service) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Service) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Service) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Service) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Service) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Service) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Service) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Service) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Service) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Service) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Service) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Service) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Service) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Service) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Service) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Service) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Service) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Service) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Service) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Service) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Service) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Service) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Service) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Service) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Service) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Service) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Service) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Service) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Service) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Service) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Service) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Service) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Service) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Service) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Service) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Service) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Service) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Service) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Service) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Service) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Service) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Service) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Service) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Service) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Service) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Service) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Service) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Service) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Service) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Service) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Service) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Service) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Service) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Service) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Service) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Service) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Service) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Service) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Service) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Service) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Service) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_streams.go b/streams/gen_streams.go new file mode 100644 index 0000000..5434b55 --- /dev/null +++ b/streams/gen_streams.go @@ -0,0 +1,3049 @@ +// Package streams is a convenience wrapper around the raw ActivityStream vocabulary. This package is code-generated to permit more powerful expressions and manipulations of the ActivityStreams Vocabulary types. This package also does not permit use of 'unknown' properties, or those that are outside of the ActivityStream Vocabulary specification. However, it still correctly propagates them when repeatedly re-and-de-serialized. Custom extensions of the vocabulary are supported by modifying the data definitions in the generation tool and rerunning it. Do not modify this package directly. +package streams + +import ( + "fmt" + "github.com/go-fed/activity/vocab" +) + +type Resolution int + +const ( + Resolved Resolution = iota + RawResolutionNeeded + Unresolved +) + +type Presence int + +const ( + NoPresence Presence = iota + ConvenientPresence + RawPresence +) + +// Resolver contains callback functions to execute when it Deserializes a raw map[string]interface{} into a concrete type. Clients can set only the callbacks they care about and handle the resulting concrete type. +type Resolver struct { + // Callback function for the Object type + ObjectCallback func(*Object) error + // Callback function for the Link type + LinkCallback func(*Link) error + // Callback function for the Activity type + ActivityCallback func(*Activity) error + // Callback function for the IntransitiveActivity type + IntransitiveActivityCallback func(*IntransitiveActivity) error + // Callback function for the Collection type + CollectionCallback func(*Collection) error + // Callback function for the OrderedCollection type + OrderedCollectionCallback func(*OrderedCollection) error + // Callback function for the CollectionPage type + CollectionPageCallback func(*CollectionPage) error + // Callback function for the OrderedCollectionPage type + OrderedCollectionPageCallback func(*OrderedCollectionPage) error + // Callback function for the Accept type + AcceptCallback func(*Accept) error + // Callback function for the TentativeAccept type + TentativeAcceptCallback func(*TentativeAccept) error + // Callback function for the Add type + AddCallback func(*Add) error + // Callback function for the Arrive type + ArriveCallback func(*Arrive) error + // Callback function for the Create type + CreateCallback func(*Create) error + // Callback function for the Delete type + DeleteCallback func(*Delete) error + // Callback function for the Follow type + FollowCallback func(*Follow) error + // Callback function for the Ignore type + IgnoreCallback func(*Ignore) error + // Callback function for the Join type + JoinCallback func(*Join) error + // Callback function for the Leave type + LeaveCallback func(*Leave) error + // Callback function for the Like type + LikeCallback func(*Like) error + // Callback function for the Offer type + OfferCallback func(*Offer) error + // Callback function for the Invite type + InviteCallback func(*Invite) error + // Callback function for the Reject type + RejectCallback func(*Reject) error + // Callback function for the TentativeReject type + TentativeRejectCallback func(*TentativeReject) error + // Callback function for the Remove type + RemoveCallback func(*Remove) error + // Callback function for the Undo type + UndoCallback func(*Undo) error + // Callback function for the Update type + UpdateCallback func(*Update) error + // Callback function for the View type + ViewCallback func(*View) error + // Callback function for the Listen type + ListenCallback func(*Listen) error + // Callback function for the Read type + ReadCallback func(*Read) error + // Callback function for the Move type + MoveCallback func(*Move) error + // Callback function for the Travel type + TravelCallback func(*Travel) error + // Callback function for the Announce type + AnnounceCallback func(*Announce) error + // Callback function for the Block type + BlockCallback func(*Block) error + // Callback function for the Flag type + FlagCallback func(*Flag) error + // Callback function for the Dislike type + DislikeCallback func(*Dislike) error + // Callback function for the Question type + QuestionCallback func(*Question) error + // Callback function for the Application type + ApplicationCallback func(*Application) error + // Callback function for the Group type + GroupCallback func(*Group) error + // Callback function for the Organization type + OrganizationCallback func(*Organization) error + // Callback function for the Person type + PersonCallback func(*Person) error + // Callback function for the Service type + ServiceCallback func(*Service) error + // Callback function for the Relationship type + RelationshipCallback func(*Relationship) error + // Callback function for the Article type + ArticleCallback func(*Article) error + // Callback function for the Document type + DocumentCallback func(*Document) error + // Callback function for the Audio type + AudioCallback func(*Audio) error + // Callback function for the Image type + ImageCallback func(*Image) error + // Callback function for the Video type + VideoCallback func(*Video) error + // Callback function for the Note type + NoteCallback func(*Note) error + // Callback function for the Page type + PageCallback func(*Page) error + // Callback function for the Event type + EventCallback func(*Event) error + // Callback function for the Place type + PlaceCallback func(*Place) error + // Callback function for the Profile type + ProfileCallback func(*Profile) error + // Callback function for the Tombstone type + TombstoneCallback func(*Tombstone) error + // Callback function for the Mention type + MentionCallback func(*Mention) error + // Callback function for any type that satisfies the vocab.ObjectType interface. Note that this will be called in addition to the specific type callbacks. + AnyObjectCallback func(vocab.ObjectType) error + // Callback function for any type that satisfies the vocab.LinkType interface. Note that this will be called in addition to the specific type callbacks. + AnyLinkCallback func(vocab.LinkType) error + // Callback function for any type that satisfies the vocab.ActivityType interface. Note that this will be called in addition to the specific type callbacks. + AnyActivityCallback func(vocab.ActivityType) error +} + +// dispatch routes the given type to the appropriate Resolver callback. +func (t *Resolver) dispatch(i interface{}) (handled bool, err error) { + // Begin generateResolver for type 'Object' + if rawV, ok := i.(*vocab.Object); ok { + if t.ObjectCallback != nil { + v := &Object{raw: rawV} + return true, t.ObjectCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Object' + // Begin generateResolver for type 'Link' + if rawV, ok := i.(*vocab.Link); ok { + if t.LinkCallback != nil { + v := &Link{raw: rawV} + return true, t.LinkCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Link' + // Begin generateResolver for type 'Activity' + if rawV, ok := i.(*vocab.Activity); ok { + if t.ActivityCallback != nil { + v := &Activity{raw: rawV} + return true, t.ActivityCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Activity' + // Begin generateResolver for type 'IntransitiveActivity' + if rawV, ok := i.(*vocab.IntransitiveActivity); ok { + if t.IntransitiveActivityCallback != nil { + v := &IntransitiveActivity{raw: rawV} + return true, t.IntransitiveActivityCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'IntransitiveActivity' + // Begin generateResolver for type 'Collection' + if rawV, ok := i.(*vocab.Collection); ok { + if t.CollectionCallback != nil { + v := &Collection{raw: rawV} + return true, t.CollectionCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Collection' + // Begin generateResolver for type 'OrderedCollection' + if rawV, ok := i.(*vocab.OrderedCollection); ok { + if t.OrderedCollectionCallback != nil { + v := &OrderedCollection{raw: rawV} + return true, t.OrderedCollectionCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'OrderedCollection' + // Begin generateResolver for type 'CollectionPage' + if rawV, ok := i.(*vocab.CollectionPage); ok { + if t.CollectionPageCallback != nil { + v := &CollectionPage{raw: rawV} + return true, t.CollectionPageCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'CollectionPage' + // Begin generateResolver for type 'OrderedCollectionPage' + if rawV, ok := i.(*vocab.OrderedCollectionPage); ok { + if t.OrderedCollectionPageCallback != nil { + v := &OrderedCollectionPage{raw: rawV} + return true, t.OrderedCollectionPageCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'OrderedCollectionPage' + // Begin generateResolver for type 'Accept' + if rawV, ok := i.(*vocab.Accept); ok { + if t.AcceptCallback != nil { + v := &Accept{raw: rawV} + return true, t.AcceptCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Accept' + // Begin generateResolver for type 'TentativeAccept' + if rawV, ok := i.(*vocab.TentativeAccept); ok { + if t.TentativeAcceptCallback != nil { + v := &TentativeAccept{raw: rawV} + return true, t.TentativeAcceptCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'TentativeAccept' + // Begin generateResolver for type 'Add' + if rawV, ok := i.(*vocab.Add); ok { + if t.AddCallback != nil { + v := &Add{raw: rawV} + return true, t.AddCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Add' + // Begin generateResolver for type 'Arrive' + if rawV, ok := i.(*vocab.Arrive); ok { + if t.ArriveCallback != nil { + v := &Arrive{raw: rawV} + return true, t.ArriveCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Arrive' + // Begin generateResolver for type 'Create' + if rawV, ok := i.(*vocab.Create); ok { + if t.CreateCallback != nil { + v := &Create{raw: rawV} + return true, t.CreateCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Create' + // Begin generateResolver for type 'Delete' + if rawV, ok := i.(*vocab.Delete); ok { + if t.DeleteCallback != nil { + v := &Delete{raw: rawV} + return true, t.DeleteCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Delete' + // Begin generateResolver for type 'Follow' + if rawV, ok := i.(*vocab.Follow); ok { + if t.FollowCallback != nil { + v := &Follow{raw: rawV} + return true, t.FollowCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Follow' + // Begin generateResolver for type 'Ignore' + if rawV, ok := i.(*vocab.Ignore); ok { + if t.IgnoreCallback != nil { + v := &Ignore{raw: rawV} + return true, t.IgnoreCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Ignore' + // Begin generateResolver for type 'Join' + if rawV, ok := i.(*vocab.Join); ok { + if t.JoinCallback != nil { + v := &Join{raw: rawV} + return true, t.JoinCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Join' + // Begin generateResolver for type 'Leave' + if rawV, ok := i.(*vocab.Leave); ok { + if t.LeaveCallback != nil { + v := &Leave{raw: rawV} + return true, t.LeaveCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Leave' + // Begin generateResolver for type 'Like' + if rawV, ok := i.(*vocab.Like); ok { + if t.LikeCallback != nil { + v := &Like{raw: rawV} + return true, t.LikeCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Like' + // Begin generateResolver for type 'Offer' + if rawV, ok := i.(*vocab.Offer); ok { + if t.OfferCallback != nil { + v := &Offer{raw: rawV} + return true, t.OfferCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Offer' + // Begin generateResolver for type 'Invite' + if rawV, ok := i.(*vocab.Invite); ok { + if t.InviteCallback != nil { + v := &Invite{raw: rawV} + return true, t.InviteCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Invite' + // Begin generateResolver for type 'Reject' + if rawV, ok := i.(*vocab.Reject); ok { + if t.RejectCallback != nil { + v := &Reject{raw: rawV} + return true, t.RejectCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Reject' + // Begin generateResolver for type 'TentativeReject' + if rawV, ok := i.(*vocab.TentativeReject); ok { + if t.TentativeRejectCallback != nil { + v := &TentativeReject{raw: rawV} + return true, t.TentativeRejectCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'TentativeReject' + // Begin generateResolver for type 'Remove' + if rawV, ok := i.(*vocab.Remove); ok { + if t.RemoveCallback != nil { + v := &Remove{raw: rawV} + return true, t.RemoveCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Remove' + // Begin generateResolver for type 'Undo' + if rawV, ok := i.(*vocab.Undo); ok { + if t.UndoCallback != nil { + v := &Undo{raw: rawV} + return true, t.UndoCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Undo' + // Begin generateResolver for type 'Update' + if rawV, ok := i.(*vocab.Update); ok { + if t.UpdateCallback != nil { + v := &Update{raw: rawV} + return true, t.UpdateCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Update' + // Begin generateResolver for type 'View' + if rawV, ok := i.(*vocab.View); ok { + if t.ViewCallback != nil { + v := &View{raw: rawV} + return true, t.ViewCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'View' + // Begin generateResolver for type 'Listen' + if rawV, ok := i.(*vocab.Listen); ok { + if t.ListenCallback != nil { + v := &Listen{raw: rawV} + return true, t.ListenCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Listen' + // Begin generateResolver for type 'Read' + if rawV, ok := i.(*vocab.Read); ok { + if t.ReadCallback != nil { + v := &Read{raw: rawV} + return true, t.ReadCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Read' + // Begin generateResolver for type 'Move' + if rawV, ok := i.(*vocab.Move); ok { + if t.MoveCallback != nil { + v := &Move{raw: rawV} + return true, t.MoveCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Move' + // Begin generateResolver for type 'Travel' + if rawV, ok := i.(*vocab.Travel); ok { + if t.TravelCallback != nil { + v := &Travel{raw: rawV} + return true, t.TravelCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Travel' + // Begin generateResolver for type 'Announce' + if rawV, ok := i.(*vocab.Announce); ok { + if t.AnnounceCallback != nil { + v := &Announce{raw: rawV} + return true, t.AnnounceCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Announce' + // Begin generateResolver for type 'Block' + if rawV, ok := i.(*vocab.Block); ok { + if t.BlockCallback != nil { + v := &Block{raw: rawV} + return true, t.BlockCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Block' + // Begin generateResolver for type 'Flag' + if rawV, ok := i.(*vocab.Flag); ok { + if t.FlagCallback != nil { + v := &Flag{raw: rawV} + return true, t.FlagCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Flag' + // Begin generateResolver for type 'Dislike' + if rawV, ok := i.(*vocab.Dislike); ok { + if t.DislikeCallback != nil { + v := &Dislike{raw: rawV} + return true, t.DislikeCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Dislike' + // Begin generateResolver for type 'Question' + if rawV, ok := i.(*vocab.Question); ok { + if t.QuestionCallback != nil { + v := &Question{raw: rawV} + return true, t.QuestionCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Question' + // Begin generateResolver for type 'Application' + if rawV, ok := i.(*vocab.Application); ok { + if t.ApplicationCallback != nil { + v := &Application{raw: rawV} + return true, t.ApplicationCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Application' + // Begin generateResolver for type 'Group' + if rawV, ok := i.(*vocab.Group); ok { + if t.GroupCallback != nil { + v := &Group{raw: rawV} + return true, t.GroupCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Group' + // Begin generateResolver for type 'Organization' + if rawV, ok := i.(*vocab.Organization); ok { + if t.OrganizationCallback != nil { + v := &Organization{raw: rawV} + return true, t.OrganizationCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Organization' + // Begin generateResolver for type 'Person' + if rawV, ok := i.(*vocab.Person); ok { + if t.PersonCallback != nil { + v := &Person{raw: rawV} + return true, t.PersonCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Person' + // Begin generateResolver for type 'Service' + if rawV, ok := i.(*vocab.Service); ok { + if t.ServiceCallback != nil { + v := &Service{raw: rawV} + return true, t.ServiceCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Service' + // Begin generateResolver for type 'Relationship' + if rawV, ok := i.(*vocab.Relationship); ok { + if t.RelationshipCallback != nil { + v := &Relationship{raw: rawV} + return true, t.RelationshipCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Relationship' + // Begin generateResolver for type 'Article' + if rawV, ok := i.(*vocab.Article); ok { + if t.ArticleCallback != nil { + v := &Article{raw: rawV} + return true, t.ArticleCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Article' + // Begin generateResolver for type 'Document' + if rawV, ok := i.(*vocab.Document); ok { + if t.DocumentCallback != nil { + v := &Document{raw: rawV} + return true, t.DocumentCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Document' + // Begin generateResolver for type 'Audio' + if rawV, ok := i.(*vocab.Audio); ok { + if t.AudioCallback != nil { + v := &Audio{raw: rawV} + return true, t.AudioCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Audio' + // Begin generateResolver for type 'Image' + if rawV, ok := i.(*vocab.Image); ok { + if t.ImageCallback != nil { + v := &Image{raw: rawV} + return true, t.ImageCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Image' + // Begin generateResolver for type 'Video' + if rawV, ok := i.(*vocab.Video); ok { + if t.VideoCallback != nil { + v := &Video{raw: rawV} + return true, t.VideoCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Video' + // Begin generateResolver for type 'Note' + if rawV, ok := i.(*vocab.Note); ok { + if t.NoteCallback != nil { + v := &Note{raw: rawV} + return true, t.NoteCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Note' + // Begin generateResolver for type 'Page' + if rawV, ok := i.(*vocab.Page); ok { + if t.PageCallback != nil { + v := &Page{raw: rawV} + return true, t.PageCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Page' + // Begin generateResolver for type 'Event' + if rawV, ok := i.(*vocab.Event); ok { + if t.EventCallback != nil { + v := &Event{raw: rawV} + return true, t.EventCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Event' + // Begin generateResolver for type 'Place' + if rawV, ok := i.(*vocab.Place); ok { + if t.PlaceCallback != nil { + v := &Place{raw: rawV} + return true, t.PlaceCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Place' + // Begin generateResolver for type 'Profile' + if rawV, ok := i.(*vocab.Profile); ok { + if t.ProfileCallback != nil { + v := &Profile{raw: rawV} + return true, t.ProfileCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Profile' + // Begin generateResolver for type 'Tombstone' + if rawV, ok := i.(*vocab.Tombstone); ok { + if t.TombstoneCallback != nil { + v := &Tombstone{raw: rawV} + return true, t.TombstoneCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Tombstone' + // Begin generateResolver for type 'Mention' + if rawV, ok := i.(*vocab.Mention); ok { + if t.MentionCallback != nil { + v := &Mention{raw: rawV} + return true, t.MentionCallback(v) + } else { + return false, nil + } + } + // End generateResolver for type 'Mention' + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + return true, t.AnyObjectCallback(obj) + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + return true, t.AnyLinkCallback(link) + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + return true, t.AnyActivityCallback(activity) + } + } + return false, fmt.Errorf("The interface did not match any known types: %T", i) + +} + +// Determines which concrete type to deserialize this json-unmarshalled item into, returning an error if it cannot determine which type to deserialize into. The appropriate callback, if present, will then be invoked with the concrete deserialized type. If the callback function returns an error, it is passed back through Deserialize. +func (t *Resolver) Deserialize(m map[string]interface{}) (err error) { + var typeStringVals []string + typeInterface, ok := m["type"] + if !ok { + return fmt.Errorf("Cannot determine type: missing 'type' property") + } + if typeStr, ok := typeInterface.(string); ok { + typeStringVals = append(typeStringVals, typeStr) + } else if typeSlice, ok := typeInterface.([]interface{}); ok { + for _, elem := range typeSlice { + if typeStr, ok := elem.(string); ok { + typeStringVals = append(typeStringVals, typeStr) + } + } + if len(typeStringVals) == 0 { + return fmt.Errorf("Cannot determine type: 'type' property is []interface{} with no string elements: %+v", typeInterface) + } + } else { + return fmt.Errorf("Cannot determine type: 'type' property is not string nor []interface{}: %T", typeInterface) + } + // Begin generateResolver for type 'Object' + for _, typeName := range typeStringVals { + if typeName == "Object" { + if t.ObjectCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Object{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Object{v} + if t.ObjectCallback != nil { + if err := t.ObjectCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Object' + // Begin generateResolver for type 'Link' + for _, typeName := range typeStringVals { + if typeName == "Link" { + if t.LinkCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Link{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Link{v} + if t.LinkCallback != nil { + if err := t.LinkCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Link' + // Begin generateResolver for type 'Activity' + for _, typeName := range typeStringVals { + if typeName == "Activity" { + if t.ActivityCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Activity{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Activity{v} + if t.ActivityCallback != nil { + if err := t.ActivityCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Activity' + // Begin generateResolver for type 'IntransitiveActivity' + for _, typeName := range typeStringVals { + if typeName == "IntransitiveActivity" { + if t.IntransitiveActivityCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.IntransitiveActivity{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &IntransitiveActivity{v} + if t.IntransitiveActivityCallback != nil { + if err := t.IntransitiveActivityCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'IntransitiveActivity' + // Begin generateResolver for type 'Collection' + for _, typeName := range typeStringVals { + if typeName == "Collection" { + if t.CollectionCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Collection{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Collection{v} + if t.CollectionCallback != nil { + if err := t.CollectionCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Collection' + // Begin generateResolver for type 'OrderedCollection' + for _, typeName := range typeStringVals { + if typeName == "OrderedCollection" { + if t.OrderedCollectionCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.OrderedCollection{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &OrderedCollection{v} + if t.OrderedCollectionCallback != nil { + if err := t.OrderedCollectionCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'OrderedCollection' + // Begin generateResolver for type 'CollectionPage' + for _, typeName := range typeStringVals { + if typeName == "CollectionPage" { + if t.CollectionPageCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.CollectionPage{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &CollectionPage{v} + if t.CollectionPageCallback != nil { + if err := t.CollectionPageCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'CollectionPage' + // Begin generateResolver for type 'OrderedCollectionPage' + for _, typeName := range typeStringVals { + if typeName == "OrderedCollectionPage" { + if t.OrderedCollectionPageCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.OrderedCollectionPage{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &OrderedCollectionPage{v} + if t.OrderedCollectionPageCallback != nil { + if err := t.OrderedCollectionPageCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'OrderedCollectionPage' + // Begin generateResolver for type 'Accept' + for _, typeName := range typeStringVals { + if typeName == "Accept" { + if t.AcceptCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Accept{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Accept{v} + if t.AcceptCallback != nil { + if err := t.AcceptCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Accept' + // Begin generateResolver for type 'TentativeAccept' + for _, typeName := range typeStringVals { + if typeName == "TentativeAccept" { + if t.TentativeAcceptCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.TentativeAccept{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &TentativeAccept{v} + if t.TentativeAcceptCallback != nil { + if err := t.TentativeAcceptCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'TentativeAccept' + // Begin generateResolver for type 'Add' + for _, typeName := range typeStringVals { + if typeName == "Add" { + if t.AddCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Add{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Add{v} + if t.AddCallback != nil { + if err := t.AddCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Add' + // Begin generateResolver for type 'Arrive' + for _, typeName := range typeStringVals { + if typeName == "Arrive" { + if t.ArriveCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Arrive{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Arrive{v} + if t.ArriveCallback != nil { + if err := t.ArriveCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Arrive' + // Begin generateResolver for type 'Create' + for _, typeName := range typeStringVals { + if typeName == "Create" { + if t.CreateCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Create{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Create{v} + if t.CreateCallback != nil { + if err := t.CreateCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Create' + // Begin generateResolver for type 'Delete' + for _, typeName := range typeStringVals { + if typeName == "Delete" { + if t.DeleteCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Delete{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Delete{v} + if t.DeleteCallback != nil { + if err := t.DeleteCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Delete' + // Begin generateResolver for type 'Follow' + for _, typeName := range typeStringVals { + if typeName == "Follow" { + if t.FollowCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Follow{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Follow{v} + if t.FollowCallback != nil { + if err := t.FollowCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Follow' + // Begin generateResolver for type 'Ignore' + for _, typeName := range typeStringVals { + if typeName == "Ignore" { + if t.IgnoreCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Ignore{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Ignore{v} + if t.IgnoreCallback != nil { + if err := t.IgnoreCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Ignore' + // Begin generateResolver for type 'Join' + for _, typeName := range typeStringVals { + if typeName == "Join" { + if t.JoinCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Join{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Join{v} + if t.JoinCallback != nil { + if err := t.JoinCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Join' + // Begin generateResolver for type 'Leave' + for _, typeName := range typeStringVals { + if typeName == "Leave" { + if t.LeaveCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Leave{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Leave{v} + if t.LeaveCallback != nil { + if err := t.LeaveCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Leave' + // Begin generateResolver for type 'Like' + for _, typeName := range typeStringVals { + if typeName == "Like" { + if t.LikeCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Like{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Like{v} + if t.LikeCallback != nil { + if err := t.LikeCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Like' + // Begin generateResolver for type 'Offer' + for _, typeName := range typeStringVals { + if typeName == "Offer" { + if t.OfferCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Offer{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Offer{v} + if t.OfferCallback != nil { + if err := t.OfferCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Offer' + // Begin generateResolver for type 'Invite' + for _, typeName := range typeStringVals { + if typeName == "Invite" { + if t.InviteCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Invite{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Invite{v} + if t.InviteCallback != nil { + if err := t.InviteCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Invite' + // Begin generateResolver for type 'Reject' + for _, typeName := range typeStringVals { + if typeName == "Reject" { + if t.RejectCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Reject{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Reject{v} + if t.RejectCallback != nil { + if err := t.RejectCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Reject' + // Begin generateResolver for type 'TentativeReject' + for _, typeName := range typeStringVals { + if typeName == "TentativeReject" { + if t.TentativeRejectCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.TentativeReject{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &TentativeReject{v} + if t.TentativeRejectCallback != nil { + if err := t.TentativeRejectCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'TentativeReject' + // Begin generateResolver for type 'Remove' + for _, typeName := range typeStringVals { + if typeName == "Remove" { + if t.RemoveCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Remove{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Remove{v} + if t.RemoveCallback != nil { + if err := t.RemoveCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Remove' + // Begin generateResolver for type 'Undo' + for _, typeName := range typeStringVals { + if typeName == "Undo" { + if t.UndoCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Undo{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Undo{v} + if t.UndoCallback != nil { + if err := t.UndoCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Undo' + // Begin generateResolver for type 'Update' + for _, typeName := range typeStringVals { + if typeName == "Update" { + if t.UpdateCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Update{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Update{v} + if t.UpdateCallback != nil { + if err := t.UpdateCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Update' + // Begin generateResolver for type 'View' + for _, typeName := range typeStringVals { + if typeName == "View" { + if t.ViewCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.View{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &View{v} + if t.ViewCallback != nil { + if err := t.ViewCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'View' + // Begin generateResolver for type 'Listen' + for _, typeName := range typeStringVals { + if typeName == "Listen" { + if t.ListenCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Listen{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Listen{v} + if t.ListenCallback != nil { + if err := t.ListenCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Listen' + // Begin generateResolver for type 'Read' + for _, typeName := range typeStringVals { + if typeName == "Read" { + if t.ReadCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Read{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Read{v} + if t.ReadCallback != nil { + if err := t.ReadCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Read' + // Begin generateResolver for type 'Move' + for _, typeName := range typeStringVals { + if typeName == "Move" { + if t.MoveCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Move{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Move{v} + if t.MoveCallback != nil { + if err := t.MoveCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Move' + // Begin generateResolver for type 'Travel' + for _, typeName := range typeStringVals { + if typeName == "Travel" { + if t.TravelCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Travel{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Travel{v} + if t.TravelCallback != nil { + if err := t.TravelCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Travel' + // Begin generateResolver for type 'Announce' + for _, typeName := range typeStringVals { + if typeName == "Announce" { + if t.AnnounceCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Announce{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Announce{v} + if t.AnnounceCallback != nil { + if err := t.AnnounceCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Announce' + // Begin generateResolver for type 'Block' + for _, typeName := range typeStringVals { + if typeName == "Block" { + if t.BlockCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Block{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Block{v} + if t.BlockCallback != nil { + if err := t.BlockCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Block' + // Begin generateResolver for type 'Flag' + for _, typeName := range typeStringVals { + if typeName == "Flag" { + if t.FlagCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Flag{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Flag{v} + if t.FlagCallback != nil { + if err := t.FlagCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Flag' + // Begin generateResolver for type 'Dislike' + for _, typeName := range typeStringVals { + if typeName == "Dislike" { + if t.DislikeCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Dislike{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Dislike{v} + if t.DislikeCallback != nil { + if err := t.DislikeCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Dislike' + // Begin generateResolver for type 'Question' + for _, typeName := range typeStringVals { + if typeName == "Question" { + if t.QuestionCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Question{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Question{v} + if t.QuestionCallback != nil { + if err := t.QuestionCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Question' + // Begin generateResolver for type 'Application' + for _, typeName := range typeStringVals { + if typeName == "Application" { + if t.ApplicationCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Application{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Application{v} + if t.ApplicationCallback != nil { + if err := t.ApplicationCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Application' + // Begin generateResolver for type 'Group' + for _, typeName := range typeStringVals { + if typeName == "Group" { + if t.GroupCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Group{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Group{v} + if t.GroupCallback != nil { + if err := t.GroupCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Group' + // Begin generateResolver for type 'Organization' + for _, typeName := range typeStringVals { + if typeName == "Organization" { + if t.OrganizationCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Organization{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Organization{v} + if t.OrganizationCallback != nil { + if err := t.OrganizationCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Organization' + // Begin generateResolver for type 'Person' + for _, typeName := range typeStringVals { + if typeName == "Person" { + if t.PersonCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Person{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Person{v} + if t.PersonCallback != nil { + if err := t.PersonCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Person' + // Begin generateResolver for type 'Service' + for _, typeName := range typeStringVals { + if typeName == "Service" { + if t.ServiceCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Service{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Service{v} + if t.ServiceCallback != nil { + if err := t.ServiceCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Service' + // Begin generateResolver for type 'Relationship' + for _, typeName := range typeStringVals { + if typeName == "Relationship" { + if t.RelationshipCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Relationship{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Relationship{v} + if t.RelationshipCallback != nil { + if err := t.RelationshipCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Relationship' + // Begin generateResolver for type 'Article' + for _, typeName := range typeStringVals { + if typeName == "Article" { + if t.ArticleCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Article{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Article{v} + if t.ArticleCallback != nil { + if err := t.ArticleCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Article' + // Begin generateResolver for type 'Document' + for _, typeName := range typeStringVals { + if typeName == "Document" { + if t.DocumentCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Document{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Document{v} + if t.DocumentCallback != nil { + if err := t.DocumentCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Document' + // Begin generateResolver for type 'Audio' + for _, typeName := range typeStringVals { + if typeName == "Audio" { + if t.AudioCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Audio{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Audio{v} + if t.AudioCallback != nil { + if err := t.AudioCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Audio' + // Begin generateResolver for type 'Image' + for _, typeName := range typeStringVals { + if typeName == "Image" { + if t.ImageCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Image{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Image{v} + if t.ImageCallback != nil { + if err := t.ImageCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Image' + // Begin generateResolver for type 'Video' + for _, typeName := range typeStringVals { + if typeName == "Video" { + if t.VideoCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Video{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Video{v} + if t.VideoCallback != nil { + if err := t.VideoCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Video' + // Begin generateResolver for type 'Note' + for _, typeName := range typeStringVals { + if typeName == "Note" { + if t.NoteCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Note{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Note{v} + if t.NoteCallback != nil { + if err := t.NoteCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Note' + // Begin generateResolver for type 'Page' + for _, typeName := range typeStringVals { + if typeName == "Page" { + if t.PageCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Page{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Page{v} + if t.PageCallback != nil { + if err := t.PageCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Page' + // Begin generateResolver for type 'Event' + for _, typeName := range typeStringVals { + if typeName == "Event" { + if t.EventCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Event{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Event{v} + if t.EventCallback != nil { + if err := t.EventCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Event' + // Begin generateResolver for type 'Place' + for _, typeName := range typeStringVals { + if typeName == "Place" { + if t.PlaceCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Place{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Place{v} + if t.PlaceCallback != nil { + if err := t.PlaceCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Place' + // Begin generateResolver for type 'Profile' + for _, typeName := range typeStringVals { + if typeName == "Profile" { + if t.ProfileCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Profile{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Profile{v} + if t.ProfileCallback != nil { + if err := t.ProfileCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Profile' + // Begin generateResolver for type 'Tombstone' + for _, typeName := range typeStringVals { + if typeName == "Tombstone" { + if t.TombstoneCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Tombstone{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Tombstone{v} + if t.TombstoneCallback != nil { + if err := t.TombstoneCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Tombstone' + // Begin generateResolver for type 'Mention' + for _, typeName := range typeStringVals { + if typeName == "Mention" { + if t.MentionCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { + v := &vocab.Mention{} + if err := v.Deserialize(m); err != nil { + return err + } + as := &Mention{v} + if t.MentionCallback != nil { + if err := t.MentionCallback(as); err != nil { + return err + } + } + var i interface{} = v + if obj, ok := i.(vocab.ObjectType); ok { + if t.AnyObjectCallback != nil { + if err := t.AnyObjectCallback(obj); err != nil { + return err + } + } + } + if link, ok := i.(vocab.LinkType); ok { + if t.AnyLinkCallback != nil { + if err := t.AnyLinkCallback(link); err != nil { + return err + } + } + } + if activity, ok := i.(vocab.ActivityType); ok { + if t.AnyActivityCallback != nil { + if err := t.AnyActivityCallback(activity); err != nil { + return err + } + } + } + return nil + } else { + return nil + } + } + } + // End generateResolver for type 'Mention' + return fmt.Errorf("The 'type' property did not match any known types: %+v", typeStringVals) + +} diff --git a/streams/gen_tentativeaccept.go b/streams/gen_tentativeaccept.go new file mode 100644 index 0000000..930cdba --- /dev/null +++ b/streams/gen_tentativeaccept.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// A specialization of Accept indicating that the acceptance is tentative. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type TentativeAccept struct { + // The raw type from the vocab package + raw *vocab.TentativeAccept +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *TentativeAccept) Raw() (n *vocab.TentativeAccept) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *TentativeAccept) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *TentativeAccept) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *TentativeAccept) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *TentativeAccept) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *TentativeAccept) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *TentativeAccept) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *TentativeAccept) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *TentativeAccept) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *TentativeAccept) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *TentativeAccept) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *TentativeAccept) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *TentativeAccept) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *TentativeAccept) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *TentativeAccept) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *TentativeAccept) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *TentativeAccept) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *TentativeAccept) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *TentativeAccept) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *TentativeAccept) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *TentativeAccept) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *TentativeAccept) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *TentativeAccept) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *TentativeAccept) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *TentativeAccept) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *TentativeAccept) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *TentativeAccept) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *TentativeAccept) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *TentativeAccept) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *TentativeAccept) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *TentativeAccept) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *TentativeAccept) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *TentativeAccept) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *TentativeAccept) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *TentativeAccept) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *TentativeAccept) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *TentativeAccept) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *TentativeAccept) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *TentativeAccept) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *TentativeAccept) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *TentativeAccept) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *TentativeAccept) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *TentativeAccept) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *TentativeAccept) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *TentativeAccept) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *TentativeAccept) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *TentativeAccept) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *TentativeAccept) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *TentativeAccept) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *TentativeAccept) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *TentativeAccept) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *TentativeAccept) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *TentativeAccept) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *TentativeAccept) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *TentativeAccept) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *TentativeAccept) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *TentativeAccept) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *TentativeAccept) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *TentativeAccept) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *TentativeAccept) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *TentativeAccept) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *TentativeAccept) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *TentativeAccept) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *TentativeAccept) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *TentativeAccept) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *TentativeAccept) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *TentativeAccept) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *TentativeAccept) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *TentativeAccept) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *TentativeAccept) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *TentativeAccept) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *TentativeAccept) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *TentativeAccept) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *TentativeAccept) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *TentativeAccept) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *TentativeAccept) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *TentativeAccept) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *TentativeAccept) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *TentativeAccept) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *TentativeAccept) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *TentativeAccept) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *TentativeAccept) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *TentativeAccept) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *TentativeAccept) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *TentativeAccept) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *TentativeAccept) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *TentativeAccept) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *TentativeAccept) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *TentativeAccept) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *TentativeAccept) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *TentativeAccept) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *TentativeAccept) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *TentativeAccept) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *TentativeAccept) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *TentativeAccept) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *TentativeAccept) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *TentativeAccept) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *TentativeAccept) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *TentativeAccept) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *TentativeAccept) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *TentativeAccept) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *TentativeAccept) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *TentativeAccept) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *TentativeAccept) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *TentativeAccept) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *TentativeAccept) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *TentativeAccept) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *TentativeAccept) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *TentativeAccept) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *TentativeAccept) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *TentativeAccept) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *TentativeAccept) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *TentativeAccept) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *TentativeAccept) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *TentativeAccept) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *TentativeAccept) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *TentativeAccept) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *TentativeAccept) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *TentativeAccept) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *TentativeAccept) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *TentativeAccept) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *TentativeAccept) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *TentativeAccept) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *TentativeAccept) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *TentativeAccept) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *TentativeAccept) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *TentativeAccept) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *TentativeAccept) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeAccept) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeAccept) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *TentativeAccept) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_tentativereject.go b/streams/gen_tentativereject.go new file mode 100644 index 0000000..92369a8 --- /dev/null +++ b/streams/gen_tentativereject.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// A specialization of Reject in which the rejection is considered tentative. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type TentativeReject struct { + // The raw type from the vocab package + raw *vocab.TentativeReject +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *TentativeReject) Raw() (n *vocab.TentativeReject) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *TentativeReject) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *TentativeReject) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *TentativeReject) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *TentativeReject) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *TentativeReject) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *TentativeReject) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *TentativeReject) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *TentativeReject) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *TentativeReject) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *TentativeReject) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *TentativeReject) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *TentativeReject) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *TentativeReject) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *TentativeReject) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *TentativeReject) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *TentativeReject) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *TentativeReject) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *TentativeReject) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *TentativeReject) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *TentativeReject) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *TentativeReject) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *TentativeReject) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *TentativeReject) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *TentativeReject) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *TentativeReject) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *TentativeReject) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *TentativeReject) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *TentativeReject) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *TentativeReject) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *TentativeReject) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *TentativeReject) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *TentativeReject) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *TentativeReject) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *TentativeReject) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *TentativeReject) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *TentativeReject) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *TentativeReject) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *TentativeReject) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *TentativeReject) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *TentativeReject) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *TentativeReject) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *TentativeReject) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *TentativeReject) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *TentativeReject) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *TentativeReject) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *TentativeReject) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *TentativeReject) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *TentativeReject) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *TentativeReject) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *TentativeReject) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *TentativeReject) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *TentativeReject) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *TentativeReject) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *TentativeReject) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *TentativeReject) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *TentativeReject) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *TentativeReject) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *TentativeReject) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *TentativeReject) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *TentativeReject) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *TentativeReject) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *TentativeReject) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *TentativeReject) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *TentativeReject) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *TentativeReject) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *TentativeReject) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *TentativeReject) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *TentativeReject) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *TentativeReject) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *TentativeReject) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *TentativeReject) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *TentativeReject) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *TentativeReject) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *TentativeReject) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *TentativeReject) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *TentativeReject) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *TentativeReject) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *TentativeReject) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *TentativeReject) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *TentativeReject) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *TentativeReject) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *TentativeReject) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *TentativeReject) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *TentativeReject) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *TentativeReject) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *TentativeReject) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *TentativeReject) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *TentativeReject) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *TentativeReject) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *TentativeReject) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *TentativeReject) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *TentativeReject) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *TentativeReject) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *TentativeReject) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *TentativeReject) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *TentativeReject) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *TentativeReject) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *TentativeReject) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *TentativeReject) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *TentativeReject) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *TentativeReject) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *TentativeReject) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *TentativeReject) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *TentativeReject) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *TentativeReject) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *TentativeReject) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *TentativeReject) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *TentativeReject) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *TentativeReject) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *TentativeReject) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *TentativeReject) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *TentativeReject) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *TentativeReject) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *TentativeReject) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *TentativeReject) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *TentativeReject) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *TentativeReject) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *TentativeReject) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *TentativeReject) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *TentativeReject) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *TentativeReject) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *TentativeReject) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *TentativeReject) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *TentativeReject) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *TentativeReject) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *TentativeReject) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *TentativeReject) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *TentativeReject) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *TentativeReject) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *TentativeReject) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_tombstone.go b/streams/gen_tombstone.go new file mode 100644 index 0000000..fce4bcc --- /dev/null +++ b/streams/gen_tombstone.go @@ -0,0 +1,2183 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// A Tombstone represents a content object that has been deleted. It can be used in Collections to signify that there used to be an object at this position, but it has been deleted. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Tombstone struct { + // The raw type from the vocab package + raw *vocab.Tombstone +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Tombstone) Raw() (n *vocab.Tombstone) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Tombstone) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenFormerType returns the number of values this property contains. Each index be used with HasFormerType to determine if GetFormerType is safe to call or if raw handling would be needed. +func (t *Tombstone) LenFormerType() (idx int) { + return t.raw.FormerTypeLen() + +} + +// GetFormerType attempts to get this 'formerType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetFormerType(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsFormerTypeString(idx) { + k = t.raw.GetFormerTypeString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsFormerTypeObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsFormerTypeIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendFormerType appends the value for property 'formerType'. +func (t *Tombstone) AppendFormerType(k string) { + t.raw.AppendFormerTypeString(k) + +} + +// PrependFormerType prepends the value for property 'formerType'. +func (t *Tombstone) PrependFormerType(k string) { + t.raw.PrependFormerTypeString(k) + +} + +// RemoveFormerType deletes the value from the specified index for property 'formerType'. +func (t *Tombstone) RemoveFormerType(idx int) { + t.raw.RemoveFormerTypeString(idx) + +} + +// HasFormerType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasFormerType(idx int) (p Presence) { + p = NoPresence + if t.raw.IsFormerTypeString(idx) { + p = ConvenientPresence + } else if t.raw.IsFormerTypeObject(idx) { + p = RawPresence + } else if t.raw.IsFormerTypeIRI(idx) { + p = RawPresence + } + return + +} + +// GetDeleted attempts to get this 'deleted' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetDeleted() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsDeleted() { + k = t.raw.GetDeleted() + if handled { + r = Resolved + } + } else if t.raw.IsDeletedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDeleted returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasDeleted() (p Presence) { + p = NoPresence + if t.raw.IsDeleted() { + p = ConvenientPresence + } else if t.raw.IsDeletedIRI() { + p = RawPresence + } + return + +} + +// SetDeleted sets the value for property 'deleted'. +func (t *Tombstone) SetDeleted(k time.Time) { + t.raw.SetDeleted(k) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Tombstone) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Tombstone) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Tombstone) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Tombstone) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Tombstone) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Tombstone) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Tombstone) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Tombstone) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Tombstone) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Tombstone) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Tombstone) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Tombstone) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Tombstone) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Tombstone) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Tombstone) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Tombstone) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Tombstone) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Tombstone) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Tombstone) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Tombstone) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Tombstone) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Tombstone) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Tombstone) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Tombstone) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Tombstone) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Tombstone) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Tombstone) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Tombstone) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Tombstone) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Tombstone) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Tombstone) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Tombstone) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Tombstone) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Tombstone) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Tombstone) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Tombstone) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Tombstone) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Tombstone) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Tombstone) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Tombstone) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Tombstone) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Tombstone) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Tombstone) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Tombstone) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Tombstone) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Tombstone) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Tombstone) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Tombstone) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Tombstone) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Tombstone) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Tombstone) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Tombstone) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Tombstone) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Tombstone) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Tombstone) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Tombstone) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Tombstone) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Tombstone) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Tombstone) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Tombstone) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Tombstone) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Tombstone) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Tombstone) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Tombstone) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Tombstone) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Tombstone) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Tombstone) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Tombstone) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Tombstone) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Tombstone) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Tombstone) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Tombstone) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Tombstone) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Tombstone) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Tombstone) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Tombstone) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Tombstone) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Tombstone) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Tombstone) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Tombstone) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Tombstone) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Tombstone) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Tombstone) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Tombstone) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Tombstone) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Tombstone) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Tombstone) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Tombstone) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Tombstone) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Tombstone) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Tombstone) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Tombstone) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Tombstone) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Tombstone) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Tombstone) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Tombstone) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Tombstone) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Tombstone) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Tombstone) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Tombstone) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Tombstone) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Tombstone) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Tombstone) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Tombstone) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Tombstone) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Tombstone) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Tombstone) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Tombstone) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Tombstone) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Tombstone) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Tombstone) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Tombstone) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Tombstone) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Tombstone) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Tombstone) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Tombstone) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Tombstone) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Tombstone) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Tombstone) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Tombstone) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Tombstone) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Tombstone) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Tombstone) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Tombstone) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Tombstone) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Tombstone) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Tombstone) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Tombstone) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_travel.go b/streams/gen_travel.go new file mode 100644 index 0000000..b33fa70 --- /dev/null +++ b/streams/gen_travel.go @@ -0,0 +1,2400 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor is traveling to target from origin. Travel is an IntransitiveObject whose actor specifies the direct object. If the target or origin are not specified, either can be determined by context. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Travel struct { + // The raw type from the vocab package + raw *vocab.Travel +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Travel) Raw() (n *vocab.Travel) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Travel) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Travel) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Travel) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Travel) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Travel) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Travel) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Travel) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Travel) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Travel) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Travel) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Travel) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Travel) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Travel) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Travel) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Travel) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Travel) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Travel) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Travel) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Travel) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Travel) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Travel) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Travel) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Travel) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Travel) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Travel) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Travel) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Travel) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Travel) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Travel) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Travel) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Travel) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Travel) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Travel) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Travel) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Travel) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Travel) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Travel) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Travel) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Travel) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Travel) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Travel) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Travel) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Travel) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Travel) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Travel) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Travel) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Travel) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Travel) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Travel) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Travel) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Travel) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Travel) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Travel) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Travel) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Travel) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Travel) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Travel) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Travel) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Travel) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Travel) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Travel) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Travel) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Travel) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Travel) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Travel) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Travel) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Travel) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Travel) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Travel) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Travel) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Travel) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Travel) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Travel) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Travel) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Travel) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Travel) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Travel) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Travel) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Travel) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Travel) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Travel) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Travel) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Travel) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Travel) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Travel) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Travel) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Travel) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Travel) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Travel) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Travel) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Travel) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Travel) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Travel) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Travel) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Travel) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Travel) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Travel) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Travel) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Travel) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Travel) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Travel) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Travel) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Travel) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Travel) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Travel) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Travel) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Travel) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Travel) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Travel) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Travel) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Travel) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Travel) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Travel) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Travel) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Travel) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Travel) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Travel) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Travel) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Travel) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Travel) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Travel) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Travel) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Travel) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Travel) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Travel) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Travel) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Travel) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Travel) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Travel) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Travel) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Travel) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Travel) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Travel) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Travel) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Travel) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Travel) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Travel) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Travel) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Travel) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Travel) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Travel) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Travel) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Travel) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Travel) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Travel) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Travel) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Travel) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Travel) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Travel) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Travel) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Travel) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Travel) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_undo.go b/streams/gen_undo.go new file mode 100644 index 0000000..8ae98ba --- /dev/null +++ b/streams/gen_undo.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor is undoing the object. In most cases, the object will be an Activity describing some previously performed action (for instance, a person may have previously "liked" an article but, for whatever reason, might choose to undo that like at some later point in time). The target and origin typically have no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Undo struct { + // The raw type from the vocab package + raw *vocab.Undo +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Undo) Raw() (n *vocab.Undo) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Undo) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Undo) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Undo) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Undo) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Undo) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Undo) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Undo) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Undo) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Undo) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Undo) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Undo) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Undo) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Undo) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Undo) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Undo) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Undo) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Undo) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Undo) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Undo) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Undo) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Undo) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Undo) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Undo) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Undo) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Undo) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Undo) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Undo) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Undo) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Undo) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Undo) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Undo) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Undo) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Undo) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Undo) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Undo) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Undo) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Undo) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Undo) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Undo) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Undo) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Undo) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Undo) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Undo) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Undo) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Undo) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Undo) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Undo) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Undo) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Undo) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Undo) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Undo) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Undo) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Undo) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Undo) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Undo) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Undo) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Undo) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Undo) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Undo) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Undo) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Undo) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Undo) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Undo) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Undo) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Undo) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Undo) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Undo) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Undo) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Undo) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Undo) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Undo) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Undo) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Undo) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Undo) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Undo) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Undo) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Undo) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Undo) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Undo) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Undo) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Undo) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Undo) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Undo) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Undo) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Undo) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Undo) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Undo) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Undo) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Undo) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Undo) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Undo) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Undo) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Undo) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Undo) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Undo) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Undo) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Undo) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Undo) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Undo) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Undo) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Undo) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Undo) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Undo) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Undo) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Undo) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Undo) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Undo) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Undo) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Undo) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Undo) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Undo) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Undo) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Undo) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Undo) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Undo) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Undo) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Undo) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Undo) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Undo) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Undo) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Undo) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Undo) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Undo) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Undo) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Undo) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Undo) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Undo) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Undo) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Undo) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Undo) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Undo) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Undo) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Undo) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Undo) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Undo) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Undo) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Undo) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Undo) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Undo) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Undo) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Undo) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Undo) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Undo) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Undo) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Undo) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Undo) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Undo) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Undo) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Undo) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Undo) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Undo) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Undo) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Undo) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Undo) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Undo) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Undo) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_update.go b/streams/gen_update.go new file mode 100644 index 0000000..40c139f --- /dev/null +++ b/streams/gen_update.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor has updated the object. Note, however, that this vocabulary does not define a mechanism for describing the actual set of modifications made to object. The target and origin typically have no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Update struct { + // The raw type from the vocab package + raw *vocab.Update +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Update) Raw() (n *vocab.Update) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Update) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *Update) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *Update) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *Update) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *Update) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *Update) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *Update) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *Update) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *Update) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *Update) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *Update) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *Update) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *Update) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *Update) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *Update) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *Update) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *Update) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *Update) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *Update) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *Update) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *Update) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *Update) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *Update) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *Update) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *Update) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *Update) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *Update) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *Update) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Update) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Update) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Update) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Update) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Update) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Update) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Update) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Update) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Update) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Update) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Update) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Update) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Update) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Update) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Update) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Update) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Update) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Update) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Update) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Update) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Update) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Update) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Update) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Update) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Update) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Update) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Update) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Update) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Update) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Update) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Update) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Update) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Update) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Update) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Update) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Update) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Update) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Update) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Update) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Update) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Update) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Update) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Update) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Update) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Update) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Update) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Update) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Update) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Update) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Update) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Update) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Update) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Update) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Update) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Update) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Update) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Update) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Update) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Update) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Update) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Update) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Update) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Update) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Update) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Update) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Update) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Update) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Update) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Update) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Update) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Update) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Update) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Update) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Update) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Update) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Update) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Update) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Update) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Update) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Update) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Update) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Update) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Update) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Update) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Update) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Update) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Update) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Update) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Update) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Update) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Update) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Update) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Update) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Update) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Update) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Update) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Update) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Update) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Update) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Update) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Update) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Update) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Update) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Update) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Update) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Update) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Update) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Update) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Update) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Update) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Update) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Update) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Update) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Update) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Update) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Update) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Update) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Update) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Update) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Update) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Update) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Update) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Update) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Update) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Update) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Update) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Update) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Update) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_video.go b/streams/gen_video.go new file mode 100644 index 0000000..f81d53c --- /dev/null +++ b/streams/gen_video.go @@ -0,0 +1,2093 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Represents a video document of any kind. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type Video struct { + // The raw type from the vocab package + raw *vocab.Video +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *Video) Raw() (n *vocab.Video) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *Video) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *Video) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *Video) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *Video) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *Video) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *Video) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *Video) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *Video) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *Video) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *Video) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *Video) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *Video) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *Video) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *Video) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *Video) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *Video) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *Video) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *Video) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *Video) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Video) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *Video) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *Video) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *Video) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *Video) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *Video) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *Video) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *Video) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *Video) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *Video) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *Video) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *Video) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Video) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *Video) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *Video) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *Video) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *Video) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *Video) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *Video) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *Video) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *Video) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *Video) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *Video) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *Video) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *Video) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *Video) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *Video) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *Video) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *Video) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *Video) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *Video) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *Video) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *Video) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *Video) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *Video) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *Video) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *Video) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *Video) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *Video) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *Video) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *Video) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *Video) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *Video) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *Video) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *Video) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *Video) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *Video) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *Video) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *Video) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *Video) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *Video) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Video) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *Video) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *Video) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *Video) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *Video) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *Video) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *Video) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *Video) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *Video) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *Video) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *Video) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *Video) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *Video) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *Video) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *Video) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *Video) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *Video) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *Video) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *Video) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *Video) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *Video) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *Video) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *Video) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *Video) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *Video) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *Video) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *Video) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *Video) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *Video) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *Video) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *Video) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *Video) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *Video) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *Video) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *Video) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *Video) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *Video) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *Video) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *Video) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *Video) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *Video) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *Video) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *Video) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *Video) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *Video) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *Video) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *Video) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *Video) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *Video) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *Video) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *Video) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *Video) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *Video) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *Video) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *Video) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *Video) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *Video) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *Video) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *Video) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/gen_view.go b/streams/gen_view.go new file mode 100644 index 0000000..41177f3 --- /dev/null +++ b/streams/gen_view.go @@ -0,0 +1,2452 @@ +// +package streams + +import ( + "github.com/go-fed/activity/vocab" + "net/url" + "time" +) + +// Indicates that the actor has viewed the object. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. +type View struct { + // The raw type from the vocab package + raw *vocab.View +} + +// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. +func (t *View) Raw() (n *vocab.View) { + return t.raw + +} + +// Serialize turns this object into a map[string]interface{}. +func (t *View) Serialize() (m map[string]interface{}, err error) { + return t.raw.Serialize() + +} + +// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed. +func (t *View) LenActor() (idx int) { + return t.raw.ActorLen() + +} + +// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetActor(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsActorIRI(idx) { + k = t.raw.GetActorIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsActorObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsActorLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendActor appends the value for property 'actor'. +func (t *View) AppendActor(k *url.URL) { + t.raw.AppendActorIRI(k) + +} + +// PrependActor prepends the value for property 'actor'. +func (t *View) PrependActor(k *url.URL) { + t.raw.PrependActorIRI(k) + +} + +// RemoveActor deletes the value from the specified index for property 'actor'. +func (t *View) RemoveActor(idx int) { + t.raw.RemoveActorIRI(idx) + +} + +// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasActor(idx int) (p Presence) { + p = NoPresence + if t.raw.IsActorIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsActorLink(idx) { + p = RawPresence + } else if t.raw.IsActorIRI(idx) { + p = RawPresence + } + return + +} + +// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed. +func (t *View) LenObject() (idx int) { + return t.raw.ObjectLen() + +} + +// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsObject(idx) { + handled, err = r.dispatch(t.raw.GetObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsObjectIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendObject appends the value for property 'object'. +func (t *View) AppendObject(i vocab.ObjectType) { + t.raw.AppendObject(i) + +} + +// PrependObject prepends the value for property 'object'. +func (t *View) PrependObject(i vocab.ObjectType) { + t.raw.PrependObject(i) + +} + +// RemoveObject deletes the value from the specified index for property 'object'. +func (t *View) RemoveObject(idx int) { + t.raw.RemoveObject(idx) + +} + +// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasObject(idx int) (p Presence) { + p = NoPresence + if t.raw.IsObject(idx) { + p = ConvenientPresence + } else if t.raw.IsObjectIRI(idx) { + p = RawPresence + } + return + +} + +// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed. +func (t *View) LenTarget() (idx int) { + return t.raw.TargetLen() + +} + +// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetTarget(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsTargetIRI(idx) { + k = t.raw.GetTargetIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsTargetObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsTargetLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTarget appends the value for property 'target'. +func (t *View) AppendTarget(k *url.URL) { + t.raw.AppendTargetIRI(k) + +} + +// PrependTarget prepends the value for property 'target'. +func (t *View) PrependTarget(k *url.URL) { + t.raw.PrependTargetIRI(k) + +} + +// RemoveTarget deletes the value from the specified index for property 'target'. +func (t *View) RemoveTarget(idx int) { + t.raw.RemoveTargetIRI(idx) + +} + +// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasTarget(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTargetIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsTargetLink(idx) { + p = RawPresence + } else if t.raw.IsTargetIRI(idx) { + p = RawPresence + } + return + +} + +// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed. +func (t *View) LenResult() (idx int) { + return t.raw.ResultLen() + +} + +// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsResultObject(idx) { + handled, err = r.dispatch(t.raw.GetResultObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultLink(idx) { + handled, err = r.dispatch(t.raw.GetResultLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsResultIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasResult(idx int) (p Presence) { + p = NoPresence + if t.raw.IsResultObject(idx) { + p = ConvenientPresence + } else if t.raw.IsResultLink(idx) { + p = ConvenientPresence + } else if t.raw.IsResultIRI(idx) { + p = RawPresence + } + return + +} + +// AppendResult appends an 'Object' typed value. +func (t *View) AppendResult(i vocab.ObjectType) { + t.raw.AppendResultObject(i) + +} + +// PrependResult prepends an 'Object' typed value. +func (t *View) PrependResult(i vocab.ObjectType) { + t.raw.PrependResultObject(i) + +} + +// AppendResultLink appends a 'Link' typed value. +func (t *View) AppendResultLink(i vocab.LinkType) { + t.raw.AppendResultLink(i) + +} + +// PrependResultLink prepends a 'Link' typed value. +func (t *View) PrependResultLink(i vocab.LinkType) { + t.raw.PrependResultLink(i) + +} + +// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed. +func (t *View) LenOrigin() (idx int) { + return t.raw.OriginLen() + +} + +// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOriginObject(idx) { + handled, err = r.dispatch(t.raw.GetOriginObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginLink(idx) { + handled, err = r.dispatch(t.raw.GetOriginLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsOriginIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasOrigin(idx int) (p Presence) { + p = NoPresence + if t.raw.IsOriginObject(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginLink(idx) { + p = ConvenientPresence + } else if t.raw.IsOriginIRI(idx) { + p = RawPresence + } + return + +} + +// AppendOrigin appends an 'Object' typed value. +func (t *View) AppendOrigin(i vocab.ObjectType) { + t.raw.AppendOriginObject(i) + +} + +// PrependOrigin prepends an 'Object' typed value. +func (t *View) PrependOrigin(i vocab.ObjectType) { + t.raw.PrependOriginObject(i) + +} + +// AppendOriginLink appends a 'Link' typed value. +func (t *View) AppendOriginLink(i vocab.LinkType) { + t.raw.AppendOriginLink(i) + +} + +// PrependOriginLink prepends a 'Link' typed value. +func (t *View) PrependOriginLink(i vocab.LinkType) { + t.raw.PrependOriginLink(i) + +} + +// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed. +func (t *View) LenInstrument() (idx int) { + return t.raw.InstrumentLen() + +} + +// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInstrumentObject(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentLink(idx) { + handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsInstrumentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasInstrument(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInstrumentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsInstrumentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendInstrument appends an 'Object' typed value. +func (t *View) AppendInstrument(i vocab.ObjectType) { + t.raw.AppendInstrumentObject(i) + +} + +// PrependInstrument prepends an 'Object' typed value. +func (t *View) PrependInstrument(i vocab.ObjectType) { + t.raw.PrependInstrumentObject(i) + +} + +// AppendInstrumentLink appends a 'Link' typed value. +func (t *View) AppendInstrumentLink(i vocab.LinkType) { + t.raw.AppendInstrumentLink(i) + +} + +// PrependInstrumentLink prepends a 'Link' typed value. +func (t *View) PrependInstrumentLink(i vocab.LinkType) { + t.raw.PrependInstrumentLink(i) + +} + +// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetAltitude() (r Resolution, k float64) { + r = Unresolved + handled := false + if t.raw.IsAltitude() { + k = t.raw.GetAltitude() + if handled { + r = Resolved + } + } else if t.raw.IsAltitudeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasAltitude() (p Presence) { + p = NoPresence + if t.raw.IsAltitude() { + p = ConvenientPresence + } else if t.raw.IsAltitudeIRI() { + p = RawPresence + } + return + +} + +// SetAltitude sets the value for property 'altitude'. +func (t *View) SetAltitude(k float64) { + t.raw.SetAltitude(k) + +} + +// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed. +func (t *View) LenAttachment() (idx int) { + return t.raw.AttachmentLen() + +} + +// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsAttachmentObject(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentLink(idx) { + handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsAttachmentIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasAttachment(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttachmentObject(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentLink(idx) { + p = ConvenientPresence + } else if t.raw.IsAttachmentIRI(idx) { + p = RawPresence + } + return + +} + +// AppendAttachment appends an 'Object' typed value. +func (t *View) AppendAttachment(i vocab.ObjectType) { + t.raw.AppendAttachmentObject(i) + +} + +// PrependAttachment prepends an 'Object' typed value. +func (t *View) PrependAttachment(i vocab.ObjectType) { + t.raw.PrependAttachmentObject(i) + +} + +// AppendAttachmentLink appends a 'Link' typed value. +func (t *View) AppendAttachmentLink(i vocab.LinkType) { + t.raw.AppendAttachmentLink(i) + +} + +// PrependAttachmentLink prepends a 'Link' typed value. +func (t *View) PrependAttachmentLink(i vocab.LinkType) { + t.raw.PrependAttachmentLink(i) + +} + +// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed. +func (t *View) LenAttributedTo() (idx int) { + return t.raw.AttributedToLen() + +} + +// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetAttributedTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAttributedToIRI(idx) { + k = t.raw.GetAttributedToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAttributedToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAttributedToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAttributedTo appends the value for property 'attributedTo'. +func (t *View) AppendAttributedTo(k *url.URL) { + t.raw.AppendAttributedToIRI(k) + +} + +// PrependAttributedTo prepends the value for property 'attributedTo'. +func (t *View) PrependAttributedTo(k *url.URL) { + t.raw.PrependAttributedToIRI(k) + +} + +// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. +func (t *View) RemoveAttributedTo(idx int) { + t.raw.RemoveAttributedToIRI(idx) + +} + +// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasAttributedTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAttributedToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAttributedToLink(idx) { + p = RawPresence + } else if t.raw.IsAttributedToIRI(idx) { + p = RawPresence + } + return + +} + +// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed. +func (t *View) LenAudience() (idx int) { + return t.raw.AudienceLen() + +} + +// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetAudience(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsAudienceIRI(idx) { + k = t.raw.GetAudienceIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsAudienceObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsAudienceLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendAudience appends the value for property 'audience'. +func (t *View) AppendAudience(k *url.URL) { + t.raw.AppendAudienceIRI(k) + +} + +// PrependAudience prepends the value for property 'audience'. +func (t *View) PrependAudience(k *url.URL) { + t.raw.PrependAudienceIRI(k) + +} + +// RemoveAudience deletes the value from the specified index for property 'audience'. +func (t *View) RemoveAudience(idx int) { + t.raw.RemoveAudienceIRI(idx) + +} + +// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasAudience(idx int) (p Presence) { + p = NoPresence + if t.raw.IsAudienceIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsAudienceLink(idx) { + p = RawPresence + } else if t.raw.IsAudienceIRI(idx) { + p = RawPresence + } + return + +} + +// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed. +func (t *View) LenContent() (idx int) { + return t.raw.ContentLen() + +} + +// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetContent(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsContentString(idx) { + k = t.raw.GetContentString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsContentLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsContentIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendContent appends the value for property 'content'. +func (t *View) AppendContent(k string) { + t.raw.AppendContentString(k) + +} + +// PrependContent prepends the value for property 'content'. +func (t *View) PrependContent(k string) { + t.raw.PrependContentString(k) + +} + +// RemoveContent deletes the value from the specified index for property 'content'. +func (t *View) RemoveContent(idx int) { + t.raw.RemoveContentString(idx) + +} + +// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasContent(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContentString(idx) { + p = ConvenientPresence + } else if t.raw.IsContentLangString(idx) { + p = RawPresence + } else if t.raw.IsContentIRI(idx) { + p = RawPresence + } + return + +} + +// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *View) ContentLanguages() (l []string) { + return t.raw.ContentMapLanguages() + +} + +// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist +func (t *View) GetContentForLanguage(l string) (v string) { + return t.raw.GetContentMap(l) + +} + +// SetContentForLanguage sets the value of 'content' for the specified language +func (t *View) SetContentForLanguage(l string, v string) { + t.raw.SetContentMap(l, v) + +} + +// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed. +func (t *View) LenContext() (idx int) { + return t.raw.ContextLen() + +} + +// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsContextObject(idx) { + handled, err = r.dispatch(t.raw.GetContextObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextLink(idx) { + handled, err = r.dispatch(t.raw.GetContextLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsContextIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasContext(idx int) (p Presence) { + p = NoPresence + if t.raw.IsContextObject(idx) { + p = ConvenientPresence + } else if t.raw.IsContextLink(idx) { + p = ConvenientPresence + } else if t.raw.IsContextIRI(idx) { + p = RawPresence + } + return + +} + +// AppendContext appends an 'Object' typed value. +func (t *View) AppendContext(i vocab.ObjectType) { + t.raw.AppendContextObject(i) + +} + +// PrependContext prepends an 'Object' typed value. +func (t *View) PrependContext(i vocab.ObjectType) { + t.raw.PrependContextObject(i) + +} + +// AppendContextLink appends a 'Link' typed value. +func (t *View) AppendContextLink(i vocab.LinkType) { + t.raw.AppendContextLink(i) + +} + +// PrependContextLink prepends a 'Link' typed value. +func (t *View) PrependContextLink(i vocab.LinkType) { + t.raw.PrependContextLink(i) + +} + +// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed. +func (t *View) LenName() (idx int) { + return t.raw.NameLen() + +} + +// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetName(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsNameString(idx) { + k = t.raw.GetNameString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsNameLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsNameIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendName appends the value for property 'name'. +func (t *View) AppendName(k string) { + t.raw.AppendNameString(k) + +} + +// PrependName prepends the value for property 'name'. +func (t *View) PrependName(k string) { + t.raw.PrependNameString(k) + +} + +// RemoveName deletes the value from the specified index for property 'name'. +func (t *View) RemoveName(idx int) { + t.raw.RemoveNameString(idx) + +} + +// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasName(idx int) (p Presence) { + p = NoPresence + if t.raw.IsNameString(idx) { + p = ConvenientPresence + } else if t.raw.IsNameLangString(idx) { + p = RawPresence + } else if t.raw.IsNameIRI(idx) { + p = RawPresence + } + return + +} + +// NameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *View) NameLanguages() (l []string) { + return t.raw.NameMapLanguages() + +} + +// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist +func (t *View) GetNameForLanguage(l string) (v string) { + return t.raw.GetNameMap(l) + +} + +// SetNameForLanguage sets the value of 'name' for the specified language +func (t *View) SetNameForLanguage(l string, v string) { + t.raw.SetNameMap(l, v) + +} + +// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetEndTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsEndTime() { + k = t.raw.GetEndTime() + if handled { + r = Resolved + } + } else if t.raw.IsEndTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasEndTime() (p Presence) { + p = NoPresence + if t.raw.IsEndTime() { + p = ConvenientPresence + } else if t.raw.IsEndTimeIRI() { + p = RawPresence + } + return + +} + +// SetEndTime sets the value for property 'endTime'. +func (t *View) SetEndTime(k time.Time) { + t.raw.SetEndTime(k) + +} + +// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed. +func (t *View) LenGenerator() (idx int) { + return t.raw.GeneratorLen() + +} + +// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsGeneratorObject(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorLink(idx) { + handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsGeneratorIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasGenerator(idx int) (p Presence) { + p = NoPresence + if t.raw.IsGeneratorObject(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorLink(idx) { + p = ConvenientPresence + } else if t.raw.IsGeneratorIRI(idx) { + p = RawPresence + } + return + +} + +// AppendGenerator appends an 'Object' typed value. +func (t *View) AppendGenerator(i vocab.ObjectType) { + t.raw.AppendGeneratorObject(i) + +} + +// PrependGenerator prepends an 'Object' typed value. +func (t *View) PrependGenerator(i vocab.ObjectType) { + t.raw.PrependGeneratorObject(i) + +} + +// AppendGeneratorLink appends a 'Link' typed value. +func (t *View) AppendGeneratorLink(i vocab.LinkType) { + t.raw.AppendGeneratorLink(i) + +} + +// PrependGeneratorLink prepends a 'Link' typed value. +func (t *View) PrependGeneratorLink(i vocab.LinkType) { + t.raw.PrependGeneratorLink(i) + +} + +// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed. +func (t *View) LenIcon() (idx int) { + return t.raw.IconLen() + +} + +// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsIconImage(idx) { + handled, err = r.dispatch(t.raw.GetIconImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsIconLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsIconIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendIcon appends the value for property 'icon'. +func (t *View) AppendIcon(i vocab.ImageType) { + t.raw.AppendIconImage(i) + +} + +// PrependIcon prepends the value for property 'icon'. +func (t *View) PrependIcon(i vocab.ImageType) { + t.raw.PrependIconImage(i) + +} + +// RemoveIcon deletes the value from the specified index for property 'icon'. +func (t *View) RemoveIcon(idx int) { + t.raw.RemoveIconImage(idx) + +} + +// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasIcon(idx int) (p Presence) { + p = NoPresence + if t.raw.IsIconImage(idx) { + p = ConvenientPresence + } else if t.raw.IsIconLink(idx) { + p = RawPresence + } else if t.raw.IsIconIRI(idx) { + p = RawPresence + } + return + +} + +// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetId() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasId() { + k = t.raw.GetId() + if handled { + r = Resolved + } + } + return + +} + +// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasId() (p Presence) { + p = NoPresence + if t.raw.HasId() { + p = ConvenientPresence + } + return + +} + +// SetId sets the value for property 'id'. +func (t *View) SetId(k *url.URL) { + t.raw.SetId(k) + +} + +// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed. +func (t *View) LenImage() (idx int) { + return t.raw.ImageLen() + +} + +// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsImageImage(idx) { + handled, err = r.dispatch(t.raw.GetImageImage(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsImageLink(idx) { + s = RawResolutionNeeded + } else if t.raw.IsImageIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// AppendImage appends the value for property 'image'. +func (t *View) AppendImage(i vocab.ImageType) { + t.raw.AppendImageImage(i) + +} + +// PrependImage prepends the value for property 'image'. +func (t *View) PrependImage(i vocab.ImageType) { + t.raw.PrependImageImage(i) + +} + +// RemoveImage deletes the value from the specified index for property 'image'. +func (t *View) RemoveImage(idx int) { + t.raw.RemoveImageImage(idx) + +} + +// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasImage(idx int) (p Presence) { + p = NoPresence + if t.raw.IsImageImage(idx) { + p = ConvenientPresence + } else if t.raw.IsImageLink(idx) { + p = RawPresence + } else if t.raw.IsImageIRI(idx) { + p = RawPresence + } + return + +} + +// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed. +func (t *View) LenInReplyTo() (idx int) { + return t.raw.InReplyToLen() + +} + +// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetInReplyTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsInReplyToIRI(idx) { + k = t.raw.GetInReplyToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsInReplyToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsInReplyToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendInReplyTo appends the value for property 'inReplyTo'. +func (t *View) AppendInReplyTo(k *url.URL) { + t.raw.AppendInReplyToIRI(k) + +} + +// PrependInReplyTo prepends the value for property 'inReplyTo'. +func (t *View) PrependInReplyTo(k *url.URL) { + t.raw.PrependInReplyToIRI(k) + +} + +// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. +func (t *View) RemoveInReplyTo(idx int) { + t.raw.RemoveInReplyToIRI(idx) + +} + +// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasInReplyTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsInReplyToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsInReplyToLink(idx) { + p = RawPresence + } else if t.raw.IsInReplyToIRI(idx) { + p = RawPresence + } + return + +} + +// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed. +func (t *View) LenLocation() (idx int) { + return t.raw.LocationLen() + +} + +// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLocationObject(idx) { + handled, err = r.dispatch(t.raw.GetLocationObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationLink(idx) { + handled, err = r.dispatch(t.raw.GetLocationLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsLocationIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasLocation(idx int) (p Presence) { + p = NoPresence + if t.raw.IsLocationObject(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationLink(idx) { + p = ConvenientPresence + } else if t.raw.IsLocationIRI(idx) { + p = RawPresence + } + return + +} + +// AppendLocation appends an 'Object' typed value. +func (t *View) AppendLocation(i vocab.ObjectType) { + t.raw.AppendLocationObject(i) + +} + +// PrependLocation prepends an 'Object' typed value. +func (t *View) PrependLocation(i vocab.ObjectType) { + t.raw.PrependLocationObject(i) + +} + +// AppendLocationLink appends a 'Link' typed value. +func (t *View) AppendLocationLink(i vocab.LinkType) { + t.raw.AppendLocationLink(i) + +} + +// PrependLocationLink prepends a 'Link' typed value. +func (t *View) PrependLocationLink(i vocab.LinkType) { + t.raw.PrependLocationLink(i) + +} + +// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed. +func (t *View) LenPreview() (idx int) { + return t.raw.PreviewLen() + +} + +// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsPreviewObject(idx) { + handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewLink(idx) { + handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsPreviewIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasPreview(idx int) (p Presence) { + p = NoPresence + if t.raw.IsPreviewObject(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewLink(idx) { + p = ConvenientPresence + } else if t.raw.IsPreviewIRI(idx) { + p = RawPresence + } + return + +} + +// AppendPreview appends an 'Object' typed value. +func (t *View) AppendPreview(i vocab.ObjectType) { + t.raw.AppendPreviewObject(i) + +} + +// PrependPreview prepends an 'Object' typed value. +func (t *View) PrependPreview(i vocab.ObjectType) { + t.raw.PrependPreviewObject(i) + +} + +// AppendPreviewLink appends a 'Link' typed value. +func (t *View) AppendPreviewLink(i vocab.LinkType) { + t.raw.AppendPreviewLink(i) + +} + +// PrependPreviewLink prepends a 'Link' typed value. +func (t *View) PrependPreviewLink(i vocab.LinkType) { + t.raw.PrependPreviewLink(i) + +} + +// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetPublished() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsPublished() { + k = t.raw.GetPublished() + if handled { + r = Resolved + } + } else if t.raw.IsPublishedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasPublished() (p Presence) { + p = NoPresence + if t.raw.IsPublished() { + p = ConvenientPresence + } else if t.raw.IsPublishedIRI() { + p = RawPresence + } + return + +} + +// SetPublished sets the value for property 'published'. +func (t *View) SetPublished(k time.Time) { + t.raw.SetPublished(k) + +} + +// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveReplies(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsReplies() { + handled, err = r.dispatch(t.raw.GetReplies()) + if handled { + s = Resolved + } + } else if t.raw.IsRepliesIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasReplies() (p Presence) { + p = NoPresence + if t.raw.IsReplies() { + p = ConvenientPresence + } else if t.raw.IsRepliesIRI() { + p = RawPresence + } + return + +} + +// SetReplies sets this value to be a 'Collection' type. +func (t *View) SetReplies(i vocab.CollectionType) { + t.raw.SetReplies(i) + +} + +// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetStartTime() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsStartTime() { + k = t.raw.GetStartTime() + if handled { + r = Resolved + } + } else if t.raw.IsStartTimeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasStartTime() (p Presence) { + p = NoPresence + if t.raw.IsStartTime() { + p = ConvenientPresence + } else if t.raw.IsStartTimeIRI() { + p = RawPresence + } + return + +} + +// SetStartTime sets the value for property 'startTime'. +func (t *View) SetStartTime(k time.Time) { + t.raw.SetStartTime(k) + +} + +// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed. +func (t *View) LenSummary() (idx int) { + return t.raw.SummaryLen() + +} + +// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetSummary(idx int) (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsSummaryString(idx) { + k = t.raw.GetSummaryString(idx) + if handled { + r = Resolved + } + } else if t.raw.IsSummaryLangString(idx) { + r = RawResolutionNeeded + } else if t.raw.IsSummaryIRI(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendSummary appends the value for property 'summary'. +func (t *View) AppendSummary(k string) { + t.raw.AppendSummaryString(k) + +} + +// PrependSummary prepends the value for property 'summary'. +func (t *View) PrependSummary(k string) { + t.raw.PrependSummaryString(k) + +} + +// RemoveSummary deletes the value from the specified index for property 'summary'. +func (t *View) RemoveSummary(idx int) { + t.raw.RemoveSummaryString(idx) + +} + +// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasSummary(idx int) (p Presence) { + p = NoPresence + if t.raw.IsSummaryString(idx) { + p = ConvenientPresence + } else if t.raw.IsSummaryLangString(idx) { + p = RawPresence + } else if t.raw.IsSummaryIRI(idx) { + p = RawPresence + } + return + +} + +// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *View) SummaryLanguages() (l []string) { + return t.raw.SummaryMapLanguages() + +} + +// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist +func (t *View) GetSummaryForLanguage(l string) (v string) { + return t.raw.GetSummaryMap(l) + +} + +// SetSummaryForLanguage sets the value of 'summary' for the specified language +func (t *View) SetSummaryForLanguage(l string, v string) { + t.raw.SetSummaryMap(l, v) + +} + +// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed. +func (t *View) LenTag() (idx int) { + return t.raw.TagLen() + +} + +// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsTagObject(idx) { + handled, err = r.dispatch(t.raw.GetTagObject(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagLink(idx) { + handled, err = r.dispatch(t.raw.GetTagLink(idx)) + if handled { + s = Resolved + } + } else if t.raw.IsTagIRI(idx) { + s = RawResolutionNeeded + } + return + +} + +// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasTag(idx int) (p Presence) { + p = NoPresence + if t.raw.IsTagObject(idx) { + p = ConvenientPresence + } else if t.raw.IsTagLink(idx) { + p = ConvenientPresence + } else if t.raw.IsTagIRI(idx) { + p = RawPresence + } + return + +} + +// AppendTag appends an 'Object' typed value. +func (t *View) AppendTag(i vocab.ObjectType) { + t.raw.AppendTagObject(i) + +} + +// PrependTag prepends an 'Object' typed value. +func (t *View) PrependTag(i vocab.ObjectType) { + t.raw.PrependTagObject(i) + +} + +// AppendTagLink appends a 'Link' typed value. +func (t *View) AppendTagLink(i vocab.LinkType) { + t.raw.AppendTagLink(i) + +} + +// PrependTagLink prepends a 'Link' typed value. +func (t *View) PrependTagLink(i vocab.LinkType) { + t.raw.PrependTagLink(i) + +} + +// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed. +func (t *View) LenType() (idx int) { + return t.raw.TypeLen() + +} + +// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetType(idx int) (r Resolution, s string) { + r = Unresolved + if tmp := t.raw.GetType(idx); tmp != nil { + ok := false + if s, ok = tmp.(string); ok { + r = Resolved + } else { + r = RawResolutionNeeded + } + } + return + +} + +// AppendType appends the value for property 'type'. +func (t *View) AppendType(i interface{}) { + t.raw.AppendType(i) + +} + +// PrependType prepends the value for property 'type'. +func (t *View) PrependType(i interface{}) { + t.raw.PrependType(i) + +} + +// RemoveType deletes the value from the specified index for property 'type'. +func (t *View) RemoveType(idx int) { + t.raw.RemoveType(idx) + +} + +// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetUpdated() (r Resolution, k time.Time) { + r = Unresolved + handled := false + if t.raw.IsUpdated() { + k = t.raw.GetUpdated() + if handled { + r = Resolved + } + } else if t.raw.IsUpdatedIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasUpdated() (p Presence) { + p = NoPresence + if t.raw.IsUpdated() { + p = ConvenientPresence + } else if t.raw.IsUpdatedIRI() { + p = RawPresence + } + return + +} + +// SetUpdated sets the value for property 'updated'. +func (t *View) SetUpdated(k time.Time) { + t.raw.SetUpdated(k) + +} + +// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed. +func (t *View) LenUrl() (idx int) { + return t.raw.UrlLen() + +} + +// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetUrl(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsUrlAnyURI(idx) { + k = t.raw.GetUrlAnyURI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsUrlLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendUrl appends the value for property 'url'. +func (t *View) AppendUrl(k *url.URL) { + t.raw.AppendUrlAnyURI(k) + +} + +// PrependUrl prepends the value for property 'url'. +func (t *View) PrependUrl(k *url.URL) { + t.raw.PrependUrlAnyURI(k) + +} + +// RemoveUrl deletes the value from the specified index for property 'url'. +func (t *View) RemoveUrl(idx int) { + t.raw.RemoveUrlAnyURI(idx) + +} + +// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasUrl(idx int) (p Presence) { + p = NoPresence + if t.raw.IsUrlAnyURI(idx) { + p = ConvenientPresence + } else if t.raw.IsUrlLink(idx) { + p = RawPresence + } + return + +} + +// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed. +func (t *View) LenTo() (idx int) { + return t.raw.ToLen() + +} + +// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetTo(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsToIRI(idx) { + k = t.raw.GetToIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsToObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsToLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendTo appends the value for property 'to'. +func (t *View) AppendTo(k *url.URL) { + t.raw.AppendToIRI(k) + +} + +// PrependTo prepends the value for property 'to'. +func (t *View) PrependTo(k *url.URL) { + t.raw.PrependToIRI(k) + +} + +// RemoveTo deletes the value from the specified index for property 'to'. +func (t *View) RemoveTo(idx int) { + t.raw.RemoveToIRI(idx) + +} + +// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasTo(idx int) (p Presence) { + p = NoPresence + if t.raw.IsToIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsToLink(idx) { + p = RawPresence + } else if t.raw.IsToIRI(idx) { + p = RawPresence + } + return + +} + +// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed. +func (t *View) LenBto() (idx int) { + return t.raw.BtoLen() + +} + +// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetBto(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBtoIRI(idx) { + k = t.raw.GetBtoIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBtoObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBtoLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBto appends the value for property 'bto'. +func (t *View) AppendBto(k *url.URL) { + t.raw.AppendBtoIRI(k) + +} + +// PrependBto prepends the value for property 'bto'. +func (t *View) PrependBto(k *url.URL) { + t.raw.PrependBtoIRI(k) + +} + +// RemoveBto deletes the value from the specified index for property 'bto'. +func (t *View) RemoveBto(idx int) { + t.raw.RemoveBtoIRI(idx) + +} + +// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasBto(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBtoIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBtoLink(idx) { + p = RawPresence + } else if t.raw.IsBtoIRI(idx) { + p = RawPresence + } + return + +} + +// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed. +func (t *View) LenCc() (idx int) { + return t.raw.CcLen() + +} + +// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetCc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsCcIRI(idx) { + k = t.raw.GetCcIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsCcObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsCcLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendCc appends the value for property 'cc'. +func (t *View) AppendCc(k *url.URL) { + t.raw.AppendCcIRI(k) + +} + +// PrependCc prepends the value for property 'cc'. +func (t *View) PrependCc(k *url.URL) { + t.raw.PrependCcIRI(k) + +} + +// RemoveCc deletes the value from the specified index for property 'cc'. +func (t *View) RemoveCc(idx int) { + t.raw.RemoveCcIRI(idx) + +} + +// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasCc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsCcIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsCcLink(idx) { + p = RawPresence + } else if t.raw.IsCcIRI(idx) { + p = RawPresence + } + return + +} + +// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed. +func (t *View) LenBcc() (idx int) { + return t.raw.BccLen() + +} + +// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetBcc(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.IsBccIRI(idx) { + k = t.raw.GetBccIRI(idx) + if handled { + r = Resolved + } + } else if t.raw.IsBccObject(idx) { + r = RawResolutionNeeded + } else if t.raw.IsBccLink(idx) { + r = RawResolutionNeeded + } + return + +} + +// AppendBcc appends the value for property 'bcc'. +func (t *View) AppendBcc(k *url.URL) { + t.raw.AppendBccIRI(k) + +} + +// PrependBcc prepends the value for property 'bcc'. +func (t *View) PrependBcc(k *url.URL) { + t.raw.PrependBccIRI(k) + +} + +// RemoveBcc deletes the value from the specified index for property 'bcc'. +func (t *View) RemoveBcc(idx int) { + t.raw.RemoveBccIRI(idx) + +} + +// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasBcc(idx int) (p Presence) { + p = NoPresence + if t.raw.IsBccIRI(idx) { + p = ConvenientPresence + } else if t.raw.IsBccLink(idx) { + p = RawPresence + } else if t.raw.IsBccIRI(idx) { + p = RawPresence + } + return + +} + +// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetMediaType() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsMediaType() { + k = t.raw.GetMediaType() + if handled { + r = Resolved + } + } else if t.raw.IsMediaTypeIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasMediaType() (p Presence) { + p = NoPresence + if t.raw.IsMediaType() { + p = ConvenientPresence + } else if t.raw.IsMediaTypeIRI() { + p = RawPresence + } + return + +} + +// SetMediaType sets the value for property 'mediaType'. +func (t *View) SetMediaType(k string) { + t.raw.SetMediaType(k) + +} + +// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetDuration() (r Resolution, k time.Duration) { + r = Unresolved + handled := false + if t.raw.IsDuration() { + k = t.raw.GetDuration() + if handled { + r = Resolved + } + } else if t.raw.IsDurationIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasDuration() (p Presence) { + p = NoPresence + if t.raw.IsDuration() { + p = ConvenientPresence + } else if t.raw.IsDurationIRI() { + p = RawPresence + } + return + +} + +// SetDuration sets the value for property 'duration'. +func (t *View) SetDuration(k time.Duration) { + t.raw.SetDuration(k) + +} + +// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveSource(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsSource() { + handled, err = r.dispatch(t.raw.GetSource()) + if handled { + s = Resolved + } + } else if t.raw.IsSourceIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasSource() (p Presence) { + p = NoPresence + if t.raw.IsSource() { + p = ConvenientPresence + } else if t.raw.IsSourceIRI() { + p = RawPresence + } + return + +} + +// SetSource sets this value to be a 'Object' type. +func (t *View) SetSource(i vocab.ObjectType) { + t.raw.SetSource(i) + +} + +// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveInbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsInboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsInboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasInbox() (p Presence) { + p = NoPresence + if t.raw.IsInboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsInboxAnyURI() { + p = RawPresence + } + return + +} + +// SetInbox sets this value to be a 'OrderedCollection' type. +func (t *View) SetInbox(i vocab.OrderedCollectionType) { + t.raw.SetInboxOrderedCollection(i) + +} + +// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveOutbox(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsOutboxOrderedCollection() { + handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsOutboxAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasOutbox() (p Presence) { + p = NoPresence + if t.raw.IsOutboxOrderedCollection() { + p = ConvenientPresence + } else if t.raw.IsOutboxAnyURI() { + p = RawPresence + } + return + +} + +// SetOutbox sets this value to be a 'OrderedCollection' type. +func (t *View) SetOutbox(i vocab.OrderedCollectionType) { + t.raw.SetOutboxOrderedCollection(i) + +} + +// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveFollowing(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowingCollection() { + handled, err = r.dispatch(t.raw.GetFollowingCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowingOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowingAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasFollowing() (p Presence) { + p = NoPresence + if t.raw.IsFollowingCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowingOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowingAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowing sets this value to be a 'Collection' type. +func (t *View) SetFollowing(i vocab.CollectionType) { + t.raw.SetFollowingCollection(i) + +} + +// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveFollowers(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsFollowersCollection() { + handled, err = r.dispatch(t.raw.GetFollowersCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsFollowersOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsFollowersAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasFollowers() (p Presence) { + p = NoPresence + if t.raw.IsFollowersCollection() { + p = ConvenientPresence + } else if t.raw.IsFollowersOrderedCollection() { + p = RawPresence + } else if t.raw.IsFollowersAnyURI() { + p = RawPresence + } + return + +} + +// SetFollowers sets this value to be a 'Collection' type. +func (t *View) SetFollowers(i vocab.CollectionType) { + t.raw.SetFollowersCollection(i) + +} + +// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveLiked(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikedCollection() { + handled, err = r.dispatch(t.raw.GetLikedCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikedOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikedAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasLiked() (p Presence) { + p = NoPresence + if t.raw.IsLikedCollection() { + p = ConvenientPresence + } else if t.raw.IsLikedOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikedAnyURI() { + p = RawPresence + } + return + +} + +// SetLiked sets this value to be a 'Collection' type. +func (t *View) SetLiked(i vocab.CollectionType) { + t.raw.SetLikedCollection(i) + +} + +// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveLikes(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsLikesCollection() { + handled, err = r.dispatch(t.raw.GetLikesCollection()) + if handled { + s = Resolved + } + } else if t.raw.IsLikesOrderedCollection() { + s = RawResolutionNeeded + } else if t.raw.IsLikesAnyURI() { + s = RawResolutionNeeded + } + return + +} + +// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasLikes() (p Presence) { + p = NoPresence + if t.raw.IsLikesCollection() { + p = ConvenientPresence + } else if t.raw.IsLikesOrderedCollection() { + p = RawPresence + } else if t.raw.IsLikesAnyURI() { + p = RawPresence + } + return + +} + +// SetLikes sets this value to be a 'Collection' type. +func (t *View) SetLikes(i vocab.CollectionType) { + t.raw.SetLikesCollection(i) + +} + +// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed. +func (t *View) LenStreams() (idx int) { + return t.raw.StreamsLen() + +} + +// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetStreams(idx int) (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if /*t.raw.HasStreams(idx)*/ true { + k = t.raw.GetStreams(idx) + if handled { + r = Resolved + } + } + return + +} + +// AppendStreams appends the value for property 'streams'. +func (t *View) AppendStreams(k *url.URL) { + t.raw.AppendStreams(k) + +} + +// PrependStreams prepends the value for property 'streams'. +func (t *View) PrependStreams(k *url.URL) { + t.raw.PrependStreams(k) + +} + +// RemoveStreams deletes the value from the specified index for property 'streams'. +func (t *View) RemoveStreams(idx int) { + t.raw.RemoveStreams(idx) + +} + +// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetPreferredUsername() (r Resolution, k string) { + r = Unresolved + handled := false + if t.raw.IsPreferredUsername() { + k = t.raw.GetPreferredUsername() + if handled { + r = Resolved + } + } else if t.raw.IsPreferredUsernameIRI() { + r = RawResolutionNeeded + } + return + +} + +// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasPreferredUsername() (p Presence) { + p = NoPresence + if t.raw.IsPreferredUsername() { + p = ConvenientPresence + } else if t.raw.IsPreferredUsernameIRI() { + p = RawPresence + } + return + +} + +// SetPreferredUsername sets the value for property 'preferredUsername'. +func (t *View) SetPreferredUsername(k string) { + t.raw.SetPreferredUsername(k) + +} + +// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. +func (t *View) PreferredUsernameLanguages() (l []string) { + return t.raw.PreferredUsernameMapLanguages() + +} + +// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist +func (t *View) GetPreferredUsernameForLanguage(l string) (v string) { + return t.raw.GetPreferredUsernameMap(l) + +} + +// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language +func (t *View) SetPreferredUsernameForLanguage(l string, v string) { + t.raw.SetPreferredUsernameMap(l, v) + +} + +// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) ResolveEndpoints(r *Resolver) (s Resolution, err error) { + s = Unresolved + handled := false + if t.raw.IsEndpoints() { + handled, err = r.dispatch(t.raw.GetEndpoints()) + if handled { + s = Resolved + } + } else if t.raw.IsEndpointsIRI() { + s = RawResolutionNeeded + } + return + +} + +// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasEndpoints() (p Presence) { + p = NoPresence + if t.raw.IsEndpoints() { + p = ConvenientPresence + } else if t.raw.IsEndpointsIRI() { + p = RawPresence + } + return + +} + +// SetEndpoints sets this value to be a 'Object' type. +func (t *View) SetEndpoints(i vocab.ObjectType) { + t.raw.SetEndpoints(i) + +} + +// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetProxyUrl() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProxyUrl() { + k = t.raw.GetProxyUrl() + if handled { + r = Resolved + } + } + return + +} + +// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasProxyUrl() (p Presence) { + p = NoPresence + if t.raw.HasProxyUrl() { + p = ConvenientPresence + } + return + +} + +// SetProxyUrl sets the value for property 'proxyUrl'. +func (t *View) SetProxyUrl(k *url.URL) { + t.raw.SetProxyUrl(k) + +} + +// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthAuthorizationEndpoint() { + k = t.raw.GetOauthAuthorizationEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasOauthAuthorizationEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthAuthorizationEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. +func (t *View) SetOauthAuthorizationEndpoint(k *url.URL) { + t.raw.SetOauthAuthorizationEndpoint(k) + +} + +// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasOauthTokenEndpoint() { + k = t.raw.GetOauthTokenEndpoint() + if handled { + r = Resolved + } + } + return + +} + +// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasOauthTokenEndpoint() (p Presence) { + p = NoPresence + if t.raw.HasOauthTokenEndpoint() { + p = ConvenientPresence + } + return + +} + +// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. +func (t *View) SetOauthTokenEndpoint(k *url.URL) { + t.raw.SetOauthTokenEndpoint(k) + +} + +// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetProvideClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasProvideClientKey() { + k = t.raw.GetProvideClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasProvideClientKey() (p Presence) { + p = NoPresence + if t.raw.HasProvideClientKey() { + p = ConvenientPresence + } + return + +} + +// SetProvideClientKey sets the value for property 'provideClientKey'. +func (t *View) SetProvideClientKey(k *url.URL) { + t.raw.SetProvideClientKey(k) + +} + +// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetSignClientKey() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSignClientKey() { + k = t.raw.GetSignClientKey() + if handled { + r = Resolved + } + } + return + +} + +// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasSignClientKey() (p Presence) { + p = NoPresence + if t.raw.HasSignClientKey() { + p = ConvenientPresence + } + return + +} + +// SetSignClientKey sets the value for property 'signClientKey'. +func (t *View) SetSignClientKey(k *url.URL) { + t.raw.SetSignClientKey(k) + +} + +// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. +func (t *View) GetSharedInbox() (r Resolution, k *url.URL) { + r = Unresolved + handled := false + if t.raw.HasSharedInbox() { + k = t.raw.GetSharedInbox() + if handled { + r = Resolved + } + } + return + +} + +// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. +func (t *View) HasSharedInbox() (p Presence) { + p = NoPresence + if t.raw.HasSharedInbox() { + p = ConvenientPresence + } + return + +} + +// SetSharedInbox sets the value for property 'sharedInbox'. +func (t *View) SetSharedInbox(k *url.URL) { + t.raw.SetSharedInbox(k) + +} diff --git a/streams/streams.go b/streams/streams.go deleted file mode 100644 index 5046b18..0000000 --- a/streams/streams.go +++ /dev/null @@ -1,124984 +0,0 @@ -// Package streams is a convenience wrapper around the raw ActivityStream vocabulary. This package is code-generated to permit more powerful expressions and manipulations of the ActivityStreams Vocabulary types. This package also does not permit use of 'unknown' properties, or those that are outside of the ActivityStream Vocabulary specification. However, it still correctly propagates them when repeatedly re-and-de-serialized. Custom extensions of the vocabulary are supported by modifying the data definitions in the generation tool and rerunning it. Do not modify this package directly. -package streams - -import ( - "fmt" - "github.com/go-fed/activity/vocab" - "net/url" - "time" -) - -type Resolution int - -const ( - Resolved Resolution = iota - RawResolutionNeeded - Unresolved -) - -type Presence int - -const ( - NoPresence Presence = iota - ConvenientPresence - RawPresence -) - -// Resolver contains callback functions to execute when it Deserializes a raw map[string]interface{} into a concrete type. Clients can set only the callbacks they care about and handle the resulting concrete type. -type Resolver struct { - // Callback function for the Object type - ObjectCallback func(*Object) error - // Callback function for the Link type - LinkCallback func(*Link) error - // Callback function for the Activity type - ActivityCallback func(*Activity) error - // Callback function for the IntransitiveActivity type - IntransitiveActivityCallback func(*IntransitiveActivity) error - // Callback function for the Collection type - CollectionCallback func(*Collection) error - // Callback function for the OrderedCollection type - OrderedCollectionCallback func(*OrderedCollection) error - // Callback function for the CollectionPage type - CollectionPageCallback func(*CollectionPage) error - // Callback function for the OrderedCollectionPage type - OrderedCollectionPageCallback func(*OrderedCollectionPage) error - // Callback function for the Accept type - AcceptCallback func(*Accept) error - // Callback function for the TentativeAccept type - TentativeAcceptCallback func(*TentativeAccept) error - // Callback function for the Add type - AddCallback func(*Add) error - // Callback function for the Arrive type - ArriveCallback func(*Arrive) error - // Callback function for the Create type - CreateCallback func(*Create) error - // Callback function for the Delete type - DeleteCallback func(*Delete) error - // Callback function for the Follow type - FollowCallback func(*Follow) error - // Callback function for the Ignore type - IgnoreCallback func(*Ignore) error - // Callback function for the Join type - JoinCallback func(*Join) error - // Callback function for the Leave type - LeaveCallback func(*Leave) error - // Callback function for the Like type - LikeCallback func(*Like) error - // Callback function for the Offer type - OfferCallback func(*Offer) error - // Callback function for the Invite type - InviteCallback func(*Invite) error - // Callback function for the Reject type - RejectCallback func(*Reject) error - // Callback function for the TentativeReject type - TentativeRejectCallback func(*TentativeReject) error - // Callback function for the Remove type - RemoveCallback func(*Remove) error - // Callback function for the Undo type - UndoCallback func(*Undo) error - // Callback function for the Update type - UpdateCallback func(*Update) error - // Callback function for the View type - ViewCallback func(*View) error - // Callback function for the Listen type - ListenCallback func(*Listen) error - // Callback function for the Read type - ReadCallback func(*Read) error - // Callback function for the Move type - MoveCallback func(*Move) error - // Callback function for the Travel type - TravelCallback func(*Travel) error - // Callback function for the Announce type - AnnounceCallback func(*Announce) error - // Callback function for the Block type - BlockCallback func(*Block) error - // Callback function for the Flag type - FlagCallback func(*Flag) error - // Callback function for the Dislike type - DislikeCallback func(*Dislike) error - // Callback function for the Question type - QuestionCallback func(*Question) error - // Callback function for the Application type - ApplicationCallback func(*Application) error - // Callback function for the Group type - GroupCallback func(*Group) error - // Callback function for the Organization type - OrganizationCallback func(*Organization) error - // Callback function for the Person type - PersonCallback func(*Person) error - // Callback function for the Service type - ServiceCallback func(*Service) error - // Callback function for the Relationship type - RelationshipCallback func(*Relationship) error - // Callback function for the Article type - ArticleCallback func(*Article) error - // Callback function for the Document type - DocumentCallback func(*Document) error - // Callback function for the Audio type - AudioCallback func(*Audio) error - // Callback function for the Image type - ImageCallback func(*Image) error - // Callback function for the Video type - VideoCallback func(*Video) error - // Callback function for the Note type - NoteCallback func(*Note) error - // Callback function for the Page type - PageCallback func(*Page) error - // Callback function for the Event type - EventCallback func(*Event) error - // Callback function for the Place type - PlaceCallback func(*Place) error - // Callback function for the Profile type - ProfileCallback func(*Profile) error - // Callback function for the Tombstone type - TombstoneCallback func(*Tombstone) error - // Callback function for the Mention type - MentionCallback func(*Mention) error - // Callback function for any type that satisfies the vocab.ObjectType interface. Note that this will be called in addition to the specific type callbacks. - AnyObjectCallback func(vocab.ObjectType) error - // Callback function for any type that satisfies the vocab.LinkType interface. Note that this will be called in addition to the specific type callbacks. - AnyLinkCallback func(vocab.LinkType) error - // Callback function for any type that satisfies the vocab.ActivityType interface. Note that this will be called in addition to the specific type callbacks. - AnyActivityCallback func(vocab.ActivityType) error -} - -// dispatch routes the given type to the appropriate Resolver callback. -func (t *Resolver) dispatch(i interface{}) (handled bool, err error) { - // Begin generateResolver for type 'Object' - if rawV, ok := i.(*vocab.Object); ok { - if t.ObjectCallback != nil { - v := &Object{raw: rawV} - return true, t.ObjectCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Object' - // Begin generateResolver for type 'Link' - if rawV, ok := i.(*vocab.Link); ok { - if t.LinkCallback != nil { - v := &Link{raw: rawV} - return true, t.LinkCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Link' - // Begin generateResolver for type 'Activity' - if rawV, ok := i.(*vocab.Activity); ok { - if t.ActivityCallback != nil { - v := &Activity{raw: rawV} - return true, t.ActivityCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Activity' - // Begin generateResolver for type 'IntransitiveActivity' - if rawV, ok := i.(*vocab.IntransitiveActivity); ok { - if t.IntransitiveActivityCallback != nil { - v := &IntransitiveActivity{raw: rawV} - return true, t.IntransitiveActivityCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'IntransitiveActivity' - // Begin generateResolver for type 'Collection' - if rawV, ok := i.(*vocab.Collection); ok { - if t.CollectionCallback != nil { - v := &Collection{raw: rawV} - return true, t.CollectionCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Collection' - // Begin generateResolver for type 'OrderedCollection' - if rawV, ok := i.(*vocab.OrderedCollection); ok { - if t.OrderedCollectionCallback != nil { - v := &OrderedCollection{raw: rawV} - return true, t.OrderedCollectionCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'OrderedCollection' - // Begin generateResolver for type 'CollectionPage' - if rawV, ok := i.(*vocab.CollectionPage); ok { - if t.CollectionPageCallback != nil { - v := &CollectionPage{raw: rawV} - return true, t.CollectionPageCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'CollectionPage' - // Begin generateResolver for type 'OrderedCollectionPage' - if rawV, ok := i.(*vocab.OrderedCollectionPage); ok { - if t.OrderedCollectionPageCallback != nil { - v := &OrderedCollectionPage{raw: rawV} - return true, t.OrderedCollectionPageCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'OrderedCollectionPage' - // Begin generateResolver for type 'Accept' - if rawV, ok := i.(*vocab.Accept); ok { - if t.AcceptCallback != nil { - v := &Accept{raw: rawV} - return true, t.AcceptCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Accept' - // Begin generateResolver for type 'TentativeAccept' - if rawV, ok := i.(*vocab.TentativeAccept); ok { - if t.TentativeAcceptCallback != nil { - v := &TentativeAccept{raw: rawV} - return true, t.TentativeAcceptCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'TentativeAccept' - // Begin generateResolver for type 'Add' - if rawV, ok := i.(*vocab.Add); ok { - if t.AddCallback != nil { - v := &Add{raw: rawV} - return true, t.AddCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Add' - // Begin generateResolver for type 'Arrive' - if rawV, ok := i.(*vocab.Arrive); ok { - if t.ArriveCallback != nil { - v := &Arrive{raw: rawV} - return true, t.ArriveCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Arrive' - // Begin generateResolver for type 'Create' - if rawV, ok := i.(*vocab.Create); ok { - if t.CreateCallback != nil { - v := &Create{raw: rawV} - return true, t.CreateCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Create' - // Begin generateResolver for type 'Delete' - if rawV, ok := i.(*vocab.Delete); ok { - if t.DeleteCallback != nil { - v := &Delete{raw: rawV} - return true, t.DeleteCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Delete' - // Begin generateResolver for type 'Follow' - if rawV, ok := i.(*vocab.Follow); ok { - if t.FollowCallback != nil { - v := &Follow{raw: rawV} - return true, t.FollowCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Follow' - // Begin generateResolver for type 'Ignore' - if rawV, ok := i.(*vocab.Ignore); ok { - if t.IgnoreCallback != nil { - v := &Ignore{raw: rawV} - return true, t.IgnoreCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Ignore' - // Begin generateResolver for type 'Join' - if rawV, ok := i.(*vocab.Join); ok { - if t.JoinCallback != nil { - v := &Join{raw: rawV} - return true, t.JoinCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Join' - // Begin generateResolver for type 'Leave' - if rawV, ok := i.(*vocab.Leave); ok { - if t.LeaveCallback != nil { - v := &Leave{raw: rawV} - return true, t.LeaveCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Leave' - // Begin generateResolver for type 'Like' - if rawV, ok := i.(*vocab.Like); ok { - if t.LikeCallback != nil { - v := &Like{raw: rawV} - return true, t.LikeCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Like' - // Begin generateResolver for type 'Offer' - if rawV, ok := i.(*vocab.Offer); ok { - if t.OfferCallback != nil { - v := &Offer{raw: rawV} - return true, t.OfferCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Offer' - // Begin generateResolver for type 'Invite' - if rawV, ok := i.(*vocab.Invite); ok { - if t.InviteCallback != nil { - v := &Invite{raw: rawV} - return true, t.InviteCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Invite' - // Begin generateResolver for type 'Reject' - if rawV, ok := i.(*vocab.Reject); ok { - if t.RejectCallback != nil { - v := &Reject{raw: rawV} - return true, t.RejectCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Reject' - // Begin generateResolver for type 'TentativeReject' - if rawV, ok := i.(*vocab.TentativeReject); ok { - if t.TentativeRejectCallback != nil { - v := &TentativeReject{raw: rawV} - return true, t.TentativeRejectCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'TentativeReject' - // Begin generateResolver for type 'Remove' - if rawV, ok := i.(*vocab.Remove); ok { - if t.RemoveCallback != nil { - v := &Remove{raw: rawV} - return true, t.RemoveCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Remove' - // Begin generateResolver for type 'Undo' - if rawV, ok := i.(*vocab.Undo); ok { - if t.UndoCallback != nil { - v := &Undo{raw: rawV} - return true, t.UndoCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Undo' - // Begin generateResolver for type 'Update' - if rawV, ok := i.(*vocab.Update); ok { - if t.UpdateCallback != nil { - v := &Update{raw: rawV} - return true, t.UpdateCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Update' - // Begin generateResolver for type 'View' - if rawV, ok := i.(*vocab.View); ok { - if t.ViewCallback != nil { - v := &View{raw: rawV} - return true, t.ViewCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'View' - // Begin generateResolver for type 'Listen' - if rawV, ok := i.(*vocab.Listen); ok { - if t.ListenCallback != nil { - v := &Listen{raw: rawV} - return true, t.ListenCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Listen' - // Begin generateResolver for type 'Read' - if rawV, ok := i.(*vocab.Read); ok { - if t.ReadCallback != nil { - v := &Read{raw: rawV} - return true, t.ReadCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Read' - // Begin generateResolver for type 'Move' - if rawV, ok := i.(*vocab.Move); ok { - if t.MoveCallback != nil { - v := &Move{raw: rawV} - return true, t.MoveCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Move' - // Begin generateResolver for type 'Travel' - if rawV, ok := i.(*vocab.Travel); ok { - if t.TravelCallback != nil { - v := &Travel{raw: rawV} - return true, t.TravelCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Travel' - // Begin generateResolver for type 'Announce' - if rawV, ok := i.(*vocab.Announce); ok { - if t.AnnounceCallback != nil { - v := &Announce{raw: rawV} - return true, t.AnnounceCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Announce' - // Begin generateResolver for type 'Block' - if rawV, ok := i.(*vocab.Block); ok { - if t.BlockCallback != nil { - v := &Block{raw: rawV} - return true, t.BlockCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Block' - // Begin generateResolver for type 'Flag' - if rawV, ok := i.(*vocab.Flag); ok { - if t.FlagCallback != nil { - v := &Flag{raw: rawV} - return true, t.FlagCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Flag' - // Begin generateResolver for type 'Dislike' - if rawV, ok := i.(*vocab.Dislike); ok { - if t.DislikeCallback != nil { - v := &Dislike{raw: rawV} - return true, t.DislikeCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Dislike' - // Begin generateResolver for type 'Question' - if rawV, ok := i.(*vocab.Question); ok { - if t.QuestionCallback != nil { - v := &Question{raw: rawV} - return true, t.QuestionCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Question' - // Begin generateResolver for type 'Application' - if rawV, ok := i.(*vocab.Application); ok { - if t.ApplicationCallback != nil { - v := &Application{raw: rawV} - return true, t.ApplicationCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Application' - // Begin generateResolver for type 'Group' - if rawV, ok := i.(*vocab.Group); ok { - if t.GroupCallback != nil { - v := &Group{raw: rawV} - return true, t.GroupCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Group' - // Begin generateResolver for type 'Organization' - if rawV, ok := i.(*vocab.Organization); ok { - if t.OrganizationCallback != nil { - v := &Organization{raw: rawV} - return true, t.OrganizationCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Organization' - // Begin generateResolver for type 'Person' - if rawV, ok := i.(*vocab.Person); ok { - if t.PersonCallback != nil { - v := &Person{raw: rawV} - return true, t.PersonCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Person' - // Begin generateResolver for type 'Service' - if rawV, ok := i.(*vocab.Service); ok { - if t.ServiceCallback != nil { - v := &Service{raw: rawV} - return true, t.ServiceCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Service' - // Begin generateResolver for type 'Relationship' - if rawV, ok := i.(*vocab.Relationship); ok { - if t.RelationshipCallback != nil { - v := &Relationship{raw: rawV} - return true, t.RelationshipCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Relationship' - // Begin generateResolver for type 'Article' - if rawV, ok := i.(*vocab.Article); ok { - if t.ArticleCallback != nil { - v := &Article{raw: rawV} - return true, t.ArticleCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Article' - // Begin generateResolver for type 'Document' - if rawV, ok := i.(*vocab.Document); ok { - if t.DocumentCallback != nil { - v := &Document{raw: rawV} - return true, t.DocumentCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Document' - // Begin generateResolver for type 'Audio' - if rawV, ok := i.(*vocab.Audio); ok { - if t.AudioCallback != nil { - v := &Audio{raw: rawV} - return true, t.AudioCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Audio' - // Begin generateResolver for type 'Image' - if rawV, ok := i.(*vocab.Image); ok { - if t.ImageCallback != nil { - v := &Image{raw: rawV} - return true, t.ImageCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Image' - // Begin generateResolver for type 'Video' - if rawV, ok := i.(*vocab.Video); ok { - if t.VideoCallback != nil { - v := &Video{raw: rawV} - return true, t.VideoCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Video' - // Begin generateResolver for type 'Note' - if rawV, ok := i.(*vocab.Note); ok { - if t.NoteCallback != nil { - v := &Note{raw: rawV} - return true, t.NoteCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Note' - // Begin generateResolver for type 'Page' - if rawV, ok := i.(*vocab.Page); ok { - if t.PageCallback != nil { - v := &Page{raw: rawV} - return true, t.PageCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Page' - // Begin generateResolver for type 'Event' - if rawV, ok := i.(*vocab.Event); ok { - if t.EventCallback != nil { - v := &Event{raw: rawV} - return true, t.EventCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Event' - // Begin generateResolver for type 'Place' - if rawV, ok := i.(*vocab.Place); ok { - if t.PlaceCallback != nil { - v := &Place{raw: rawV} - return true, t.PlaceCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Place' - // Begin generateResolver for type 'Profile' - if rawV, ok := i.(*vocab.Profile); ok { - if t.ProfileCallback != nil { - v := &Profile{raw: rawV} - return true, t.ProfileCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Profile' - // Begin generateResolver for type 'Tombstone' - if rawV, ok := i.(*vocab.Tombstone); ok { - if t.TombstoneCallback != nil { - v := &Tombstone{raw: rawV} - return true, t.TombstoneCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Tombstone' - // Begin generateResolver for type 'Mention' - if rawV, ok := i.(*vocab.Mention); ok { - if t.MentionCallback != nil { - v := &Mention{raw: rawV} - return true, t.MentionCallback(v) - } else { - return false, nil - } - } - // End generateResolver for type 'Mention' - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - return true, t.AnyObjectCallback(obj) - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - return true, t.AnyLinkCallback(link) - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - return true, t.AnyActivityCallback(activity) - } - } - return false, fmt.Errorf("The interface did not match any known types: %T", i) - -} - -// Determines which concrete type to deserialize this json-unmarshalled item into, returning an error if it cannot determine which type to deserialize into. The appropriate callback, if present, will then be invoked with the concrete deserialized type. If the callback function returns an error, it is passed back through Deserialize. -func (t *Resolver) Deserialize(m map[string]interface{}) (err error) { - var typeStringVals []string - typeInterface, ok := m["type"] - if !ok { - return fmt.Errorf("Cannot determine type: missing 'type' property") - } - if typeStr, ok := typeInterface.(string); ok { - typeStringVals = append(typeStringVals, typeStr) - } else if typeSlice, ok := typeInterface.([]interface{}); ok { - for _, elem := range typeSlice { - if typeStr, ok := elem.(string); ok { - typeStringVals = append(typeStringVals, typeStr) - } - } - if len(typeStringVals) == 0 { - return fmt.Errorf("Cannot determine type: 'type' property is []interface{} with no string elements: %+v", typeInterface) - } - } else { - return fmt.Errorf("Cannot determine type: 'type' property is not string nor []interface{}: %T", typeInterface) - } - // Begin generateResolver for type 'Object' - for _, typeName := range typeStringVals { - if typeName == "Object" { - if t.ObjectCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Object{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Object{v} - if t.ObjectCallback != nil { - if err := t.ObjectCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Object' - // Begin generateResolver for type 'Link' - for _, typeName := range typeStringVals { - if typeName == "Link" { - if t.LinkCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Link{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Link{v} - if t.LinkCallback != nil { - if err := t.LinkCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Link' - // Begin generateResolver for type 'Activity' - for _, typeName := range typeStringVals { - if typeName == "Activity" { - if t.ActivityCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Activity{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Activity{v} - if t.ActivityCallback != nil { - if err := t.ActivityCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Activity' - // Begin generateResolver for type 'IntransitiveActivity' - for _, typeName := range typeStringVals { - if typeName == "IntransitiveActivity" { - if t.IntransitiveActivityCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.IntransitiveActivity{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &IntransitiveActivity{v} - if t.IntransitiveActivityCallback != nil { - if err := t.IntransitiveActivityCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'IntransitiveActivity' - // Begin generateResolver for type 'Collection' - for _, typeName := range typeStringVals { - if typeName == "Collection" { - if t.CollectionCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Collection{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Collection{v} - if t.CollectionCallback != nil { - if err := t.CollectionCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Collection' - // Begin generateResolver for type 'OrderedCollection' - for _, typeName := range typeStringVals { - if typeName == "OrderedCollection" { - if t.OrderedCollectionCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.OrderedCollection{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &OrderedCollection{v} - if t.OrderedCollectionCallback != nil { - if err := t.OrderedCollectionCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'OrderedCollection' - // Begin generateResolver for type 'CollectionPage' - for _, typeName := range typeStringVals { - if typeName == "CollectionPage" { - if t.CollectionPageCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.CollectionPage{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &CollectionPage{v} - if t.CollectionPageCallback != nil { - if err := t.CollectionPageCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'CollectionPage' - // Begin generateResolver for type 'OrderedCollectionPage' - for _, typeName := range typeStringVals { - if typeName == "OrderedCollectionPage" { - if t.OrderedCollectionPageCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.OrderedCollectionPage{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &OrderedCollectionPage{v} - if t.OrderedCollectionPageCallback != nil { - if err := t.OrderedCollectionPageCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'OrderedCollectionPage' - // Begin generateResolver for type 'Accept' - for _, typeName := range typeStringVals { - if typeName == "Accept" { - if t.AcceptCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Accept{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Accept{v} - if t.AcceptCallback != nil { - if err := t.AcceptCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Accept' - // Begin generateResolver for type 'TentativeAccept' - for _, typeName := range typeStringVals { - if typeName == "TentativeAccept" { - if t.TentativeAcceptCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.TentativeAccept{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &TentativeAccept{v} - if t.TentativeAcceptCallback != nil { - if err := t.TentativeAcceptCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'TentativeAccept' - // Begin generateResolver for type 'Add' - for _, typeName := range typeStringVals { - if typeName == "Add" { - if t.AddCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Add{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Add{v} - if t.AddCallback != nil { - if err := t.AddCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Add' - // Begin generateResolver for type 'Arrive' - for _, typeName := range typeStringVals { - if typeName == "Arrive" { - if t.ArriveCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Arrive{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Arrive{v} - if t.ArriveCallback != nil { - if err := t.ArriveCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Arrive' - // Begin generateResolver for type 'Create' - for _, typeName := range typeStringVals { - if typeName == "Create" { - if t.CreateCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Create{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Create{v} - if t.CreateCallback != nil { - if err := t.CreateCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Create' - // Begin generateResolver for type 'Delete' - for _, typeName := range typeStringVals { - if typeName == "Delete" { - if t.DeleteCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Delete{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Delete{v} - if t.DeleteCallback != nil { - if err := t.DeleteCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Delete' - // Begin generateResolver for type 'Follow' - for _, typeName := range typeStringVals { - if typeName == "Follow" { - if t.FollowCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Follow{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Follow{v} - if t.FollowCallback != nil { - if err := t.FollowCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Follow' - // Begin generateResolver for type 'Ignore' - for _, typeName := range typeStringVals { - if typeName == "Ignore" { - if t.IgnoreCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Ignore{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Ignore{v} - if t.IgnoreCallback != nil { - if err := t.IgnoreCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Ignore' - // Begin generateResolver for type 'Join' - for _, typeName := range typeStringVals { - if typeName == "Join" { - if t.JoinCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Join{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Join{v} - if t.JoinCallback != nil { - if err := t.JoinCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Join' - // Begin generateResolver for type 'Leave' - for _, typeName := range typeStringVals { - if typeName == "Leave" { - if t.LeaveCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Leave{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Leave{v} - if t.LeaveCallback != nil { - if err := t.LeaveCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Leave' - // Begin generateResolver for type 'Like' - for _, typeName := range typeStringVals { - if typeName == "Like" { - if t.LikeCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Like{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Like{v} - if t.LikeCallback != nil { - if err := t.LikeCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Like' - // Begin generateResolver for type 'Offer' - for _, typeName := range typeStringVals { - if typeName == "Offer" { - if t.OfferCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Offer{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Offer{v} - if t.OfferCallback != nil { - if err := t.OfferCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Offer' - // Begin generateResolver for type 'Invite' - for _, typeName := range typeStringVals { - if typeName == "Invite" { - if t.InviteCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Invite{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Invite{v} - if t.InviteCallback != nil { - if err := t.InviteCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Invite' - // Begin generateResolver for type 'Reject' - for _, typeName := range typeStringVals { - if typeName == "Reject" { - if t.RejectCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Reject{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Reject{v} - if t.RejectCallback != nil { - if err := t.RejectCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Reject' - // Begin generateResolver for type 'TentativeReject' - for _, typeName := range typeStringVals { - if typeName == "TentativeReject" { - if t.TentativeRejectCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.TentativeReject{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &TentativeReject{v} - if t.TentativeRejectCallback != nil { - if err := t.TentativeRejectCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'TentativeReject' - // Begin generateResolver for type 'Remove' - for _, typeName := range typeStringVals { - if typeName == "Remove" { - if t.RemoveCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Remove{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Remove{v} - if t.RemoveCallback != nil { - if err := t.RemoveCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Remove' - // Begin generateResolver for type 'Undo' - for _, typeName := range typeStringVals { - if typeName == "Undo" { - if t.UndoCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Undo{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Undo{v} - if t.UndoCallback != nil { - if err := t.UndoCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Undo' - // Begin generateResolver for type 'Update' - for _, typeName := range typeStringVals { - if typeName == "Update" { - if t.UpdateCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Update{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Update{v} - if t.UpdateCallback != nil { - if err := t.UpdateCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Update' - // Begin generateResolver for type 'View' - for _, typeName := range typeStringVals { - if typeName == "View" { - if t.ViewCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.View{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &View{v} - if t.ViewCallback != nil { - if err := t.ViewCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'View' - // Begin generateResolver for type 'Listen' - for _, typeName := range typeStringVals { - if typeName == "Listen" { - if t.ListenCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Listen{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Listen{v} - if t.ListenCallback != nil { - if err := t.ListenCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Listen' - // Begin generateResolver for type 'Read' - for _, typeName := range typeStringVals { - if typeName == "Read" { - if t.ReadCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Read{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Read{v} - if t.ReadCallback != nil { - if err := t.ReadCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Read' - // Begin generateResolver for type 'Move' - for _, typeName := range typeStringVals { - if typeName == "Move" { - if t.MoveCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Move{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Move{v} - if t.MoveCallback != nil { - if err := t.MoveCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Move' - // Begin generateResolver for type 'Travel' - for _, typeName := range typeStringVals { - if typeName == "Travel" { - if t.TravelCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Travel{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Travel{v} - if t.TravelCallback != nil { - if err := t.TravelCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Travel' - // Begin generateResolver for type 'Announce' - for _, typeName := range typeStringVals { - if typeName == "Announce" { - if t.AnnounceCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Announce{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Announce{v} - if t.AnnounceCallback != nil { - if err := t.AnnounceCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Announce' - // Begin generateResolver for type 'Block' - for _, typeName := range typeStringVals { - if typeName == "Block" { - if t.BlockCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Block{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Block{v} - if t.BlockCallback != nil { - if err := t.BlockCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Block' - // Begin generateResolver for type 'Flag' - for _, typeName := range typeStringVals { - if typeName == "Flag" { - if t.FlagCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Flag{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Flag{v} - if t.FlagCallback != nil { - if err := t.FlagCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Flag' - // Begin generateResolver for type 'Dislike' - for _, typeName := range typeStringVals { - if typeName == "Dislike" { - if t.DislikeCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Dislike{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Dislike{v} - if t.DislikeCallback != nil { - if err := t.DislikeCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Dislike' - // Begin generateResolver for type 'Question' - for _, typeName := range typeStringVals { - if typeName == "Question" { - if t.QuestionCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Question{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Question{v} - if t.QuestionCallback != nil { - if err := t.QuestionCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Question' - // Begin generateResolver for type 'Application' - for _, typeName := range typeStringVals { - if typeName == "Application" { - if t.ApplicationCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Application{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Application{v} - if t.ApplicationCallback != nil { - if err := t.ApplicationCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Application' - // Begin generateResolver for type 'Group' - for _, typeName := range typeStringVals { - if typeName == "Group" { - if t.GroupCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Group{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Group{v} - if t.GroupCallback != nil { - if err := t.GroupCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Group' - // Begin generateResolver for type 'Organization' - for _, typeName := range typeStringVals { - if typeName == "Organization" { - if t.OrganizationCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Organization{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Organization{v} - if t.OrganizationCallback != nil { - if err := t.OrganizationCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Organization' - // Begin generateResolver for type 'Person' - for _, typeName := range typeStringVals { - if typeName == "Person" { - if t.PersonCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Person{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Person{v} - if t.PersonCallback != nil { - if err := t.PersonCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Person' - // Begin generateResolver for type 'Service' - for _, typeName := range typeStringVals { - if typeName == "Service" { - if t.ServiceCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Service{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Service{v} - if t.ServiceCallback != nil { - if err := t.ServiceCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Service' - // Begin generateResolver for type 'Relationship' - for _, typeName := range typeStringVals { - if typeName == "Relationship" { - if t.RelationshipCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Relationship{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Relationship{v} - if t.RelationshipCallback != nil { - if err := t.RelationshipCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Relationship' - // Begin generateResolver for type 'Article' - for _, typeName := range typeStringVals { - if typeName == "Article" { - if t.ArticleCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Article{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Article{v} - if t.ArticleCallback != nil { - if err := t.ArticleCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Article' - // Begin generateResolver for type 'Document' - for _, typeName := range typeStringVals { - if typeName == "Document" { - if t.DocumentCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Document{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Document{v} - if t.DocumentCallback != nil { - if err := t.DocumentCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Document' - // Begin generateResolver for type 'Audio' - for _, typeName := range typeStringVals { - if typeName == "Audio" { - if t.AudioCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Audio{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Audio{v} - if t.AudioCallback != nil { - if err := t.AudioCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Audio' - // Begin generateResolver for type 'Image' - for _, typeName := range typeStringVals { - if typeName == "Image" { - if t.ImageCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Image{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Image{v} - if t.ImageCallback != nil { - if err := t.ImageCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Image' - // Begin generateResolver for type 'Video' - for _, typeName := range typeStringVals { - if typeName == "Video" { - if t.VideoCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Video{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Video{v} - if t.VideoCallback != nil { - if err := t.VideoCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Video' - // Begin generateResolver for type 'Note' - for _, typeName := range typeStringVals { - if typeName == "Note" { - if t.NoteCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Note{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Note{v} - if t.NoteCallback != nil { - if err := t.NoteCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Note' - // Begin generateResolver for type 'Page' - for _, typeName := range typeStringVals { - if typeName == "Page" { - if t.PageCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Page{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Page{v} - if t.PageCallback != nil { - if err := t.PageCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Page' - // Begin generateResolver for type 'Event' - for _, typeName := range typeStringVals { - if typeName == "Event" { - if t.EventCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Event{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Event{v} - if t.EventCallback != nil { - if err := t.EventCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Event' - // Begin generateResolver for type 'Place' - for _, typeName := range typeStringVals { - if typeName == "Place" { - if t.PlaceCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Place{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Place{v} - if t.PlaceCallback != nil { - if err := t.PlaceCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Place' - // Begin generateResolver for type 'Profile' - for _, typeName := range typeStringVals { - if typeName == "Profile" { - if t.ProfileCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Profile{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Profile{v} - if t.ProfileCallback != nil { - if err := t.ProfileCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Profile' - // Begin generateResolver for type 'Tombstone' - for _, typeName := range typeStringVals { - if typeName == "Tombstone" { - if t.TombstoneCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Tombstone{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Tombstone{v} - if t.TombstoneCallback != nil { - if err := t.TombstoneCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Tombstone' - // Begin generateResolver for type 'Mention' - for _, typeName := range typeStringVals { - if typeName == "Mention" { - if t.MentionCallback != nil || t.AnyObjectCallback != nil || t.AnyLinkCallback != nil || t.AnyActivityCallback != nil { - v := &vocab.Mention{} - if err := v.Deserialize(m); err != nil { - return err - } - as := &Mention{v} - if t.MentionCallback != nil { - if err := t.MentionCallback(as); err != nil { - return err - } - } - var i interface{} = v - if obj, ok := i.(vocab.ObjectType); ok { - if t.AnyObjectCallback != nil { - if err := t.AnyObjectCallback(obj); err != nil { - return err - } - } - } - if link, ok := i.(vocab.LinkType); ok { - if t.AnyLinkCallback != nil { - if err := t.AnyLinkCallback(link); err != nil { - return err - } - } - } - if activity, ok := i.(vocab.ActivityType); ok { - if t.AnyActivityCallback != nil { - if err := t.AnyActivityCallback(activity); err != nil { - return err - } - } - } - return nil - } else { - return nil - } - } - } - // End generateResolver for type 'Mention' - return fmt.Errorf("The 'type' property did not match any known types: %+v", typeStringVals) - -} - -// Describes an object of any kind. The Object type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as Activity, IntransitiveActivity, Collection and OrderedCollection. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Object struct { - // The raw type from the vocab package - raw *vocab.Object -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Object) Raw() (n *vocab.Object) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Object) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Object) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Object) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Object) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Object) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Object) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Object) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Object) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Object) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Object) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Object) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Object) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Object) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Object) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Object) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Object) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Object) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Object) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Object) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Object) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Object) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Object) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Object) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Object) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Object) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Object) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Object) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Object) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Object) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Object) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Object) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Object) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Object) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Object) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Object) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Object) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Object) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Object) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Object) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Object) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Object) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Object) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Object) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Object) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Object) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Object) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Object) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Object) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Object) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Object) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Object) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Object) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Object) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Object) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Object) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Object) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Object) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Object) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Object) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Object) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Object) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Object) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Object) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Object) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Object) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Object) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Object) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Object) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Object) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Object) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Object) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Object) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Object) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Object) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Object) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Object) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Object) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Object) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Object) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Object) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Object) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Object) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Object) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Object) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Object) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Object) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Object) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Object) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Object) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Object) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Object) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Object) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Object) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Object) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Object) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Object) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Object) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Object) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Object) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Object) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Object) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Object) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Object) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Object) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Object) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Object) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Object) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Object) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Object) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Object) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Object) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Object) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Object) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Object) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Object) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Object) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Object) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Object) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Object) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Object) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Object) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Object) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Object) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Object) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Object) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Object) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Object) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Object) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Object) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// A Link is an indirect, qualified reference to a resource identified by a URL. The fundamental model for links is established by [ RFC5988]. Many of the properties defined by the Activity Vocabulary allow values that are either instances of Object or Link. When a Link is used, it establishes a qualified relation connecting the subject (the containing object) to the resource identified by the href. Properties of the Link are properties of the reference as opposed to properties of the resource. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Link struct { - // The raw type from the vocab package - raw *vocab.Link -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Link) Raw() (n *vocab.Link) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Link) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Link) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Link) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Link) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Link) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Link) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Link) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// GetHref attempts to get this 'href' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Link) GetHref() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasHref() { - k = t.raw.GetHref() - if handled { - r = Resolved - } - } - return - -} - -// HasHref returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Link) HasHref() (p Presence) { - p = NoPresence - if t.raw.HasHref() { - p = ConvenientPresence - } - return - -} - -// SetHref sets the value for property 'href'. -func (t *Link) SetHref(k *url.URL) { - t.raw.SetHref(k) - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Link) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Link) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Link) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenRel returns the number of values this property contains. Each index be used with HasRel to determine if GetRel is safe to call or if raw handling would be needed.%!(EXTRA string=rel) -func (t *Link) LenRel() (idx int) { - return t.raw.RelLen() - -} - -// GetRel attempts to get this 'rel' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Link) GetRel(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsRel(idx) { - k = t.raw.GetRel(idx) - if handled { - r = Resolved - } - } else if t.raw.IsRelIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendRel appends the value for property 'rel'. -func (t *Link) AppendRel(k string) { - t.raw.AppendRel(k) - -} - -// PrependRel prepends the value for property 'rel'. -func (t *Link) PrependRel(k string) { - t.raw.PrependRel(k) - -} - -// RemoveRel deletes the value from the specified index for property 'rel'. -func (t *Link) RemoveRel(idx int) { - t.raw.RemoveRel(idx) - -} - -// HasRel returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Link) HasRel(idx int) (p Presence) { - p = NoPresence - if t.raw.IsRel(idx) { - p = ConvenientPresence - } else if t.raw.IsRelIRI(idx) { - p = RawPresence - } - return - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Link) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Link) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Link) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Link) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Link) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Link) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Link) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Link) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Link) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Link) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Link) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Link) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Link) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Link) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Link) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Link) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Link) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Link) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Link) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Link) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Link) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Link) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Link) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Link) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Link) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Link) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// GetHreflang attempts to get this 'hreflang' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Link) GetHreflang() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsHreflang() { - k = t.raw.GetHreflang() - if handled { - r = Resolved - } - } else if t.raw.IsHreflangIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasHreflang returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Link) HasHreflang() (p Presence) { - p = NoPresence - if t.raw.IsHreflang() { - p = ConvenientPresence - } else if t.raw.IsHreflangIRI() { - p = RawPresence - } - return - -} - -// SetHreflang sets the value for property 'hreflang'. -func (t *Link) SetHreflang(k string) { - t.raw.SetHreflang(k) - -} - -// GetHeight attempts to get this 'height' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Link) GetHeight() (r Resolution, k int64) { - r = Unresolved - handled := false - if t.raw.IsHeight() { - k = t.raw.GetHeight() - if handled { - r = Resolved - } - } else if t.raw.IsHeightIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasHeight returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Link) HasHeight() (p Presence) { - p = NoPresence - if t.raw.IsHeight() { - p = ConvenientPresence - } else if t.raw.IsHeightIRI() { - p = RawPresence - } - return - -} - -// SetHeight sets the value for property 'height'. -func (t *Link) SetHeight(k int64) { - t.raw.SetHeight(k) - -} - -// GetWidth attempts to get this 'width' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Link) GetWidth() (r Resolution, k int64) { - r = Unresolved - handled := false - if t.raw.IsWidth() { - k = t.raw.GetWidth() - if handled { - r = Resolved - } - } else if t.raw.IsWidthIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasWidth returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Link) HasWidth() (p Presence) { - p = NoPresence - if t.raw.IsWidth() { - p = ConvenientPresence - } else if t.raw.IsWidthIRI() { - p = RawPresence - } - return - -} - -// SetWidth sets the value for property 'width'. -func (t *Link) SetWidth(k int64) { - t.raw.SetWidth(k) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Link) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Link) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Link) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Link) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Link) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Link) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Link) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened. The Activity type itself serves as an abstract base type for all types of activities. It is important to note that the Activity type itself does not carry any specific semantics about the kind of action being taken. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Activity struct { - // The raw type from the vocab package - raw *vocab.Activity -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Activity) Raw() (n *vocab.Activity) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Activity) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Activity) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Activity) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Activity) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Activity) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Activity) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Activity) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Activity) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Activity) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Activity) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Activity) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Activity) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Activity) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Activity) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Activity) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Activity) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Activity) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Activity) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Activity) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Activity) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Activity) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Activity) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Activity) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Activity) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Activity) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Activity) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Activity) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Activity) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Activity) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Activity) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Activity) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Activity) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Activity) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Activity) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Activity) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Activity) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Activity) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Activity) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Activity) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Activity) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Activity) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Activity) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Activity) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Activity) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Activity) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Activity) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Activity) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Activity) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Activity) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Activity) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Activity) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Activity) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Activity) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Activity) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Activity) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Activity) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Activity) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Activity) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Activity) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Activity) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Activity) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Activity) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Activity) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Activity) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Activity) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Activity) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Activity) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Activity) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Activity) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Activity) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Activity) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Activity) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Activity) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Activity) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Activity) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Activity) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Activity) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Activity) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Activity) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Activity) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Activity) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Activity) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Activity) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Activity) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Activity) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Activity) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Activity) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Activity) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Activity) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Activity) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Activity) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Activity) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Activity) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Activity) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Activity) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Activity) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Activity) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Activity) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Activity) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Activity) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Activity) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Activity) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Activity) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Activity) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Activity) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Activity) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Activity) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Activity) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Activity) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Activity) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Activity) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Activity) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Activity) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Activity) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Activity) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Activity) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Activity) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Activity) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Activity) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Activity) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Activity) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Activity) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Activity) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Activity) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Activity) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Activity) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Activity) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Activity) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Activity) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Activity) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Activity) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Activity) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Activity) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Activity) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Activity) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Activity) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Activity) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Activity) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Activity) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Activity) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Activity) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Activity) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Activity) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Activity) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Activity) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Activity) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Activity) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Activity) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Activity) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Activity) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Activity) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Activity) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Activity) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Activity) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Activity) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Activity) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Instances of IntransitiveActivity are a subtype of Activity representing intransitive actions. The object property is therefore inappropriate for these activities. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type IntransitiveActivity struct { - // The raw type from the vocab package - raw *vocab.IntransitiveActivity -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *IntransitiveActivity) Raw() (n *vocab.IntransitiveActivity) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *IntransitiveActivity) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *IntransitiveActivity) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *IntransitiveActivity) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *IntransitiveActivity) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *IntransitiveActivity) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *IntransitiveActivity) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *IntransitiveActivity) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *IntransitiveActivity) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *IntransitiveActivity) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *IntransitiveActivity) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *IntransitiveActivity) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *IntransitiveActivity) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *IntransitiveActivity) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *IntransitiveActivity) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *IntransitiveActivity) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *IntransitiveActivity) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *IntransitiveActivity) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *IntransitiveActivity) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *IntransitiveActivity) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *IntransitiveActivity) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *IntransitiveActivity) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *IntransitiveActivity) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *IntransitiveActivity) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *IntransitiveActivity) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *IntransitiveActivity) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *IntransitiveActivity) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *IntransitiveActivity) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *IntransitiveActivity) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *IntransitiveActivity) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *IntransitiveActivity) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *IntransitiveActivity) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *IntransitiveActivity) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *IntransitiveActivity) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *IntransitiveActivity) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *IntransitiveActivity) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *IntransitiveActivity) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *IntransitiveActivity) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *IntransitiveActivity) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *IntransitiveActivity) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *IntransitiveActivity) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *IntransitiveActivity) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *IntransitiveActivity) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *IntransitiveActivity) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *IntransitiveActivity) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *IntransitiveActivity) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *IntransitiveActivity) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *IntransitiveActivity) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *IntransitiveActivity) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *IntransitiveActivity) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *IntransitiveActivity) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *IntransitiveActivity) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *IntransitiveActivity) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *IntransitiveActivity) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *IntransitiveActivity) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *IntransitiveActivity) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *IntransitiveActivity) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *IntransitiveActivity) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *IntransitiveActivity) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *IntransitiveActivity) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *IntransitiveActivity) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *IntransitiveActivity) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *IntransitiveActivity) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *IntransitiveActivity) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *IntransitiveActivity) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *IntransitiveActivity) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *IntransitiveActivity) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *IntransitiveActivity) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *IntransitiveActivity) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *IntransitiveActivity) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *IntransitiveActivity) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *IntransitiveActivity) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *IntransitiveActivity) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *IntransitiveActivity) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *IntransitiveActivity) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *IntransitiveActivity) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *IntransitiveActivity) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *IntransitiveActivity) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *IntransitiveActivity) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *IntransitiveActivity) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *IntransitiveActivity) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *IntransitiveActivity) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *IntransitiveActivity) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *IntransitiveActivity) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *IntransitiveActivity) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *IntransitiveActivity) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *IntransitiveActivity) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *IntransitiveActivity) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *IntransitiveActivity) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *IntransitiveActivity) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *IntransitiveActivity) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *IntransitiveActivity) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *IntransitiveActivity) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *IntransitiveActivity) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *IntransitiveActivity) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *IntransitiveActivity) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *IntransitiveActivity) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *IntransitiveActivity) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *IntransitiveActivity) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *IntransitiveActivity) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *IntransitiveActivity) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *IntransitiveActivity) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *IntransitiveActivity) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *IntransitiveActivity) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *IntransitiveActivity) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *IntransitiveActivity) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *IntransitiveActivity) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *IntransitiveActivity) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *IntransitiveActivity) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *IntransitiveActivity) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *IntransitiveActivity) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *IntransitiveActivity) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *IntransitiveActivity) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *IntransitiveActivity) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *IntransitiveActivity) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *IntransitiveActivity) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *IntransitiveActivity) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *IntransitiveActivity) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *IntransitiveActivity) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *IntransitiveActivity) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *IntransitiveActivity) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *IntransitiveActivity) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *IntransitiveActivity) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *IntransitiveActivity) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *IntransitiveActivity) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *IntransitiveActivity) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *IntransitiveActivity) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *IntransitiveActivity) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *IntransitiveActivity) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *IntransitiveActivity) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *IntransitiveActivity) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *IntransitiveActivity) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *IntransitiveActivity) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *IntransitiveActivity) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *IntransitiveActivity) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *IntransitiveActivity) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *IntransitiveActivity) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *IntransitiveActivity) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *IntransitiveActivity) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *IntransitiveActivity) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *IntransitiveActivity) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *IntransitiveActivity) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *IntransitiveActivity) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *IntransitiveActivity) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *IntransitiveActivity) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *IntransitiveActivity) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *IntransitiveActivity) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *IntransitiveActivity) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *IntransitiveActivity) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *IntransitiveActivity) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *IntransitiveActivity) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *IntransitiveActivity) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *IntransitiveActivity) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// A Collection is a subtype of Object that represents ordered or unordered sets of Object or Link instances. Refer to the Activity Streams 2.0 Core specification for a complete description of the Collection type. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Collection struct { - // The raw type from the vocab package - raw *vocab.Collection -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Collection) Raw() (n *vocab.Collection) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Collection) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// GetTotalItems attempts to get this 'totalItems' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetTotalItems() (r Resolution, k int64) { - r = Unresolved - handled := false - if t.raw.IsTotalItems() { - k = t.raw.GetTotalItems() - if handled { - r = Resolved - } - } else if t.raw.IsTotalItemsIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasTotalItems returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasTotalItems() (p Presence) { - p = NoPresence - if t.raw.IsTotalItems() { - p = ConvenientPresence - } else if t.raw.IsTotalItemsIRI() { - p = RawPresence - } - return - -} - -// SetTotalItems sets the value for property 'totalItems'. -func (t *Collection) SetTotalItems(k int64) { - t.raw.SetTotalItems(k) - -} - -// GetCurrent attempts to get this 'current' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetCurrent() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCurrentIRI() { - k = t.raw.GetCurrentIRI() - if handled { - r = Resolved - } - } else if t.raw.IsCurrentCollectionPage() { - r = RawResolutionNeeded - } else if t.raw.IsCurrentLink() { - r = RawResolutionNeeded - } - return - -} - -// HasCurrent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasCurrent() (p Presence) { - p = NoPresence - if t.raw.IsCurrentIRI() { - p = ConvenientPresence - } else if t.raw.IsCurrentCollectionPage() { - p = RawPresence - } else if t.raw.IsCurrentLink() { - p = RawPresence - } - return - -} - -// SetCurrent sets the value for property 'current'. -func (t *Collection) SetCurrent(k *url.URL) { - t.raw.SetCurrentIRI(k) - -} - -// GetFirst attempts to get this 'first' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetFirst() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsFirstIRI() { - k = t.raw.GetFirstIRI() - if handled { - r = Resolved - } - } else if t.raw.IsFirstCollectionPage() { - r = RawResolutionNeeded - } else if t.raw.IsFirstLink() { - r = RawResolutionNeeded - } - return - -} - -// HasFirst returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasFirst() (p Presence) { - p = NoPresence - if t.raw.IsFirstIRI() { - p = ConvenientPresence - } else if t.raw.IsFirstCollectionPage() { - p = RawPresence - } else if t.raw.IsFirstLink() { - p = RawPresence - } - return - -} - -// SetFirst sets the value for property 'first'. -func (t *Collection) SetFirst(k *url.URL) { - t.raw.SetFirstIRI(k) - -} - -// GetLast attempts to get this 'last' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetLast() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsLastIRI() { - k = t.raw.GetLastIRI() - if handled { - r = Resolved - } - } else if t.raw.IsLastCollectionPage() { - r = RawResolutionNeeded - } else if t.raw.IsLastLink() { - r = RawResolutionNeeded - } - return - -} - -// HasLast returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasLast() (p Presence) { - p = NoPresence - if t.raw.IsLastIRI() { - p = ConvenientPresence - } else if t.raw.IsLastCollectionPage() { - p = RawPresence - } else if t.raw.IsLastLink() { - p = RawPresence - } - return - -} - -// SetLast sets the value for property 'last'. -func (t *Collection) SetLast(k *url.URL) { - t.raw.SetLastIRI(k) - -} - -// LenItems returns the number of values this property contains. Each index be used with HasItems to determine if ResolveItems is safe to call or if raw handling would be needed.%!(EXTRA string=items) -func (t *Collection) LenItems() (idx int) { - return t.raw.ItemsLen() - -} - -// ResolveItems passes the actual concrete type to the resolver for handing property items. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolveItems(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsItemsObject(idx) { - handled, err = r.dispatch(t.raw.GetItemsObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsItemsLink(idx) { - handled, err = r.dispatch(t.raw.GetItemsLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsItemsIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasItems returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasItems(idx int) (p Presence) { - p = NoPresence - if t.raw.IsItemsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsItemsLink(idx) { - p = ConvenientPresence - } else if t.raw.IsItemsIRI(idx) { - p = RawPresence - } - return - -} - -// AppendItems appends an 'Object' typed value. -func (t *Collection) AppendItems(i vocab.ObjectType) { - t.raw.AppendItemsObject(i) - -} - -// PrependItems prepends an 'Object' typed value. -func (t *Collection) PrependItems(i vocab.ObjectType) { - t.raw.PrependItemsObject(i) - -} - -// AppendItemsLink appends a 'Link' typed value. -func (t *Collection) AppendItemsLink(i vocab.LinkType) { - t.raw.AppendItemsLink(i) - -} - -// PrependItemsLink prepends a 'Link' typed value. -func (t *Collection) PrependItemsLink(i vocab.LinkType) { - t.raw.PrependItemsLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Collection) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Collection) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Collection) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Collection) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Collection) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Collection) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Collection) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Collection) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Collection) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Collection) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Collection) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Collection) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Collection) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Collection) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Collection) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Collection) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Collection) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Collection) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Collection) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Collection) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Collection) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Collection) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Collection) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Collection) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Collection) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Collection) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Collection) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Collection) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Collection) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Collection) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Collection) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Collection) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Collection) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Collection) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Collection) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Collection) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Collection) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Collection) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Collection) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Collection) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Collection) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Collection) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Collection) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Collection) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Collection) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Collection) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Collection) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Collection) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Collection) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Collection) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Collection) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Collection) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Collection) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Collection) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Collection) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Collection) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Collection) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Collection) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Collection) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Collection) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Collection) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Collection) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Collection) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Collection) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Collection) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Collection) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Collection) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Collection) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Collection) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Collection) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Collection) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Collection) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Collection) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Collection) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Collection) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Collection) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Collection) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Collection) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Collection) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Collection) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Collection) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Collection) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Collection) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Collection) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Collection) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Collection) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Collection) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Collection) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Collection) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Collection) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Collection) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Collection) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Collection) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Collection) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Collection) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Collection) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Collection) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Collection) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Collection) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Collection) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Collection) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Collection) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Collection) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Collection) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Collection) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Collection) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Collection) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Collection) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Collection) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Collection) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Collection) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Collection) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Collection) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Collection) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Collection) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Collection) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Collection) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Collection) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Collection) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Collection) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Collection) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Collection) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Collection) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Collection) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Collection) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Collection) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Collection) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Collection) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// A subtype of Collection in which members of the logical collection are assumed to always be strictly ordered. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type OrderedCollection struct { - // The raw type from the vocab package - raw *vocab.OrderedCollection -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *OrderedCollection) Raw() (n *vocab.OrderedCollection) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *OrderedCollection) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenOrderedItems returns the number of values this property contains. Each index be used with HasOrderedItems to determine if ResolveOrderedItems is safe to call or if raw handling would be needed.%!(EXTRA string=orderedItems) -func (t *OrderedCollection) LenOrderedItems() (idx int) { - return t.raw.OrderedItemsLen() - -} - -// ResolveOrderedItems passes the actual concrete type to the resolver for handing property orderedItems. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolveOrderedItems(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOrderedItemsObject(idx) { - handled, err = r.dispatch(t.raw.GetOrderedItemsObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOrderedItemsLink(idx) { - handled, err = r.dispatch(t.raw.GetOrderedItemsLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOrderedItemsIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrderedItems returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasOrderedItems(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOrderedItemsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOrderedItemsLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOrderedItemsIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrderedItems appends an 'Object' typed value. -func (t *OrderedCollection) AppendOrderedItems(i vocab.ObjectType) { - t.raw.AppendOrderedItemsObject(i) - -} - -// PrependOrderedItems prepends an 'Object' typed value. -func (t *OrderedCollection) PrependOrderedItems(i vocab.ObjectType) { - t.raw.PrependOrderedItemsObject(i) - -} - -// AppendOrderedItemsLink appends a 'Link' typed value. -func (t *OrderedCollection) AppendOrderedItemsLink(i vocab.LinkType) { - t.raw.AppendOrderedItemsLink(i) - -} - -// PrependOrderedItemsLink prepends a 'Link' typed value. -func (t *OrderedCollection) PrependOrderedItemsLink(i vocab.LinkType) { - t.raw.PrependOrderedItemsLink(i) - -} - -// GetCurrent attempts to get this 'current' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetCurrent() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCurrentIRI() { - k = t.raw.GetCurrentIRI() - if handled { - r = Resolved - } - } else if t.raw.IsCurrentOrderedCollectionPage() { - r = RawResolutionNeeded - } else if t.raw.IsCurrentLink() { - r = RawResolutionNeeded - } - return - -} - -// HasCurrent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasCurrent() (p Presence) { - p = NoPresence - if t.raw.IsCurrentIRI() { - p = ConvenientPresence - } else if t.raw.IsCurrentOrderedCollectionPage() { - p = RawPresence - } else if t.raw.IsCurrentLink() { - p = RawPresence - } - return - -} - -// SetCurrent sets the value for property 'current'. -func (t *OrderedCollection) SetCurrent(k *url.URL) { - t.raw.SetCurrentIRI(k) - -} - -// GetFirst attempts to get this 'first' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetFirst() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsFirstIRI() { - k = t.raw.GetFirstIRI() - if handled { - r = Resolved - } - } else if t.raw.IsFirstOrderedCollectionPage() { - r = RawResolutionNeeded - } else if t.raw.IsFirstLink() { - r = RawResolutionNeeded - } - return - -} - -// HasFirst returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasFirst() (p Presence) { - p = NoPresence - if t.raw.IsFirstIRI() { - p = ConvenientPresence - } else if t.raw.IsFirstOrderedCollectionPage() { - p = RawPresence - } else if t.raw.IsFirstLink() { - p = RawPresence - } - return - -} - -// SetFirst sets the value for property 'first'. -func (t *OrderedCollection) SetFirst(k *url.URL) { - t.raw.SetFirstIRI(k) - -} - -// GetLast attempts to get this 'last' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetLast() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsLastIRI() { - k = t.raw.GetLastIRI() - if handled { - r = Resolved - } - } else if t.raw.IsLastOrderedCollectionPage() { - r = RawResolutionNeeded - } else if t.raw.IsLastLink() { - r = RawResolutionNeeded - } - return - -} - -// HasLast returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasLast() (p Presence) { - p = NoPresence - if t.raw.IsLastIRI() { - p = ConvenientPresence - } else if t.raw.IsLastOrderedCollectionPage() { - p = RawPresence - } else if t.raw.IsLastLink() { - p = RawPresence - } - return - -} - -// SetLast sets the value for property 'last'. -func (t *OrderedCollection) SetLast(k *url.URL) { - t.raw.SetLastIRI(k) - -} - -// GetTotalItems attempts to get this 'totalItems' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetTotalItems() (r Resolution, k int64) { - r = Unresolved - handled := false - if t.raw.IsTotalItems() { - k = t.raw.GetTotalItems() - if handled { - r = Resolved - } - } else if t.raw.IsTotalItemsIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasTotalItems returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasTotalItems() (p Presence) { - p = NoPresence - if t.raw.IsTotalItems() { - p = ConvenientPresence - } else if t.raw.IsTotalItemsIRI() { - p = RawPresence - } - return - -} - -// SetTotalItems sets the value for property 'totalItems'. -func (t *OrderedCollection) SetTotalItems(k int64) { - t.raw.SetTotalItems(k) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *OrderedCollection) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *OrderedCollection) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *OrderedCollection) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *OrderedCollection) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *OrderedCollection) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *OrderedCollection) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *OrderedCollection) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *OrderedCollection) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *OrderedCollection) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *OrderedCollection) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *OrderedCollection) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *OrderedCollection) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *OrderedCollection) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *OrderedCollection) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *OrderedCollection) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *OrderedCollection) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *OrderedCollection) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *OrderedCollection) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *OrderedCollection) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *OrderedCollection) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *OrderedCollection) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *OrderedCollection) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *OrderedCollection) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *OrderedCollection) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *OrderedCollection) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *OrderedCollection) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *OrderedCollection) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *OrderedCollection) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *OrderedCollection) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *OrderedCollection) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *OrderedCollection) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *OrderedCollection) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *OrderedCollection) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *OrderedCollection) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *OrderedCollection) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *OrderedCollection) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *OrderedCollection) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *OrderedCollection) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *OrderedCollection) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *OrderedCollection) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *OrderedCollection) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *OrderedCollection) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *OrderedCollection) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *OrderedCollection) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *OrderedCollection) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *OrderedCollection) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *OrderedCollection) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *OrderedCollection) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *OrderedCollection) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *OrderedCollection) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *OrderedCollection) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *OrderedCollection) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *OrderedCollection) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *OrderedCollection) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *OrderedCollection) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *OrderedCollection) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *OrderedCollection) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *OrderedCollection) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *OrderedCollection) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *OrderedCollection) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *OrderedCollection) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *OrderedCollection) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *OrderedCollection) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *OrderedCollection) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *OrderedCollection) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *OrderedCollection) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *OrderedCollection) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *OrderedCollection) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *OrderedCollection) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *OrderedCollection) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *OrderedCollection) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *OrderedCollection) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *OrderedCollection) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *OrderedCollection) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *OrderedCollection) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *OrderedCollection) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *OrderedCollection) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *OrderedCollection) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *OrderedCollection) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *OrderedCollection) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *OrderedCollection) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *OrderedCollection) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *OrderedCollection) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *OrderedCollection) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *OrderedCollection) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *OrderedCollection) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *OrderedCollection) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *OrderedCollection) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *OrderedCollection) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *OrderedCollection) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *OrderedCollection) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *OrderedCollection) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *OrderedCollection) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *OrderedCollection) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *OrderedCollection) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *OrderedCollection) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *OrderedCollection) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *OrderedCollection) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *OrderedCollection) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *OrderedCollection) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *OrderedCollection) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *OrderedCollection) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *OrderedCollection) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *OrderedCollection) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *OrderedCollection) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *OrderedCollection) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *OrderedCollection) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *OrderedCollection) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *OrderedCollection) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *OrderedCollection) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *OrderedCollection) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *OrderedCollection) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *OrderedCollection) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *OrderedCollection) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *OrderedCollection) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *OrderedCollection) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *OrderedCollection) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *OrderedCollection) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *OrderedCollection) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *OrderedCollection) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *OrderedCollection) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *OrderedCollection) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *OrderedCollection) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *OrderedCollection) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *OrderedCollection) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollection) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollection) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *OrderedCollection) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Used to represent distinct subsets of items from a Collection. Refer to the Activity Streams 2.0 Core for a complete description of the CollectionPage object. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type CollectionPage struct { - // The raw type from the vocab package - raw *vocab.CollectionPage -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *CollectionPage) Raw() (n *vocab.CollectionPage) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *CollectionPage) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// ResolvePartOf passes the actual concrete type to the resolver for handing property partOf. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolvePartOf(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPartOfLink() { - handled, err = r.dispatch(t.raw.GetPartOfLink()) - if handled { - s = Resolved - } - } else if t.raw.IsPartOfCollection() { - s = RawResolutionNeeded - } else if t.raw.IsPartOfIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasPartOf returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasPartOf() (p Presence) { - p = NoPresence - if t.raw.IsPartOfLink() { - p = ConvenientPresence - } else if t.raw.IsPartOfCollection() { - p = RawPresence - } else if t.raw.IsPartOfIRI() { - p = RawPresence - } - return - -} - -// SetPartOf sets this value to be a 'Link' type. -func (t *CollectionPage) SetPartOf(i vocab.LinkType) { - t.raw.SetPartOfLink(i) - -} - -// GetNext attempts to get this 'next' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetNext() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsNextIRI() { - k = t.raw.GetNextIRI() - if handled { - r = Resolved - } - } else if t.raw.IsNextCollectionPage() { - r = RawResolutionNeeded - } else if t.raw.IsNextLink() { - r = RawResolutionNeeded - } - return - -} - -// HasNext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasNext() (p Presence) { - p = NoPresence - if t.raw.IsNextIRI() { - p = ConvenientPresence - } else if t.raw.IsNextCollectionPage() { - p = RawPresence - } else if t.raw.IsNextLink() { - p = RawPresence - } - return - -} - -// SetNext sets the value for property 'next'. -func (t *CollectionPage) SetNext(k *url.URL) { - t.raw.SetNextIRI(k) - -} - -// GetPrev attempts to get this 'prev' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetPrev() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsPrevIRI() { - k = t.raw.GetPrevIRI() - if handled { - r = Resolved - } - } else if t.raw.IsPrevCollectionPage() { - r = RawResolutionNeeded - } else if t.raw.IsPrevLink() { - r = RawResolutionNeeded - } - return - -} - -// HasPrev returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasPrev() (p Presence) { - p = NoPresence - if t.raw.IsPrevIRI() { - p = ConvenientPresence - } else if t.raw.IsPrevCollectionPage() { - p = RawPresence - } else if t.raw.IsPrevLink() { - p = RawPresence - } - return - -} - -// SetPrev sets the value for property 'prev'. -func (t *CollectionPage) SetPrev(k *url.URL) { - t.raw.SetPrevIRI(k) - -} - -// GetTotalItems attempts to get this 'totalItems' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetTotalItems() (r Resolution, k int64) { - r = Unresolved - handled := false - if t.raw.IsTotalItems() { - k = t.raw.GetTotalItems() - if handled { - r = Resolved - } - } else if t.raw.IsTotalItemsIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasTotalItems returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasTotalItems() (p Presence) { - p = NoPresence - if t.raw.IsTotalItems() { - p = ConvenientPresence - } else if t.raw.IsTotalItemsIRI() { - p = RawPresence - } - return - -} - -// SetTotalItems sets the value for property 'totalItems'. -func (t *CollectionPage) SetTotalItems(k int64) { - t.raw.SetTotalItems(k) - -} - -// GetCurrent attempts to get this 'current' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetCurrent() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCurrentIRI() { - k = t.raw.GetCurrentIRI() - if handled { - r = Resolved - } - } else if t.raw.IsCurrentCollectionPage() { - r = RawResolutionNeeded - } else if t.raw.IsCurrentLink() { - r = RawResolutionNeeded - } - return - -} - -// HasCurrent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasCurrent() (p Presence) { - p = NoPresence - if t.raw.IsCurrentIRI() { - p = ConvenientPresence - } else if t.raw.IsCurrentCollectionPage() { - p = RawPresence - } else if t.raw.IsCurrentLink() { - p = RawPresence - } - return - -} - -// SetCurrent sets the value for property 'current'. -func (t *CollectionPage) SetCurrent(k *url.URL) { - t.raw.SetCurrentIRI(k) - -} - -// GetFirst attempts to get this 'first' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetFirst() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsFirstIRI() { - k = t.raw.GetFirstIRI() - if handled { - r = Resolved - } - } else if t.raw.IsFirstCollectionPage() { - r = RawResolutionNeeded - } else if t.raw.IsFirstLink() { - r = RawResolutionNeeded - } - return - -} - -// HasFirst returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasFirst() (p Presence) { - p = NoPresence - if t.raw.IsFirstIRI() { - p = ConvenientPresence - } else if t.raw.IsFirstCollectionPage() { - p = RawPresence - } else if t.raw.IsFirstLink() { - p = RawPresence - } - return - -} - -// SetFirst sets the value for property 'first'. -func (t *CollectionPage) SetFirst(k *url.URL) { - t.raw.SetFirstIRI(k) - -} - -// GetLast attempts to get this 'last' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetLast() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsLastIRI() { - k = t.raw.GetLastIRI() - if handled { - r = Resolved - } - } else if t.raw.IsLastCollectionPage() { - r = RawResolutionNeeded - } else if t.raw.IsLastLink() { - r = RawResolutionNeeded - } - return - -} - -// HasLast returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasLast() (p Presence) { - p = NoPresence - if t.raw.IsLastIRI() { - p = ConvenientPresence - } else if t.raw.IsLastCollectionPage() { - p = RawPresence - } else if t.raw.IsLastLink() { - p = RawPresence - } - return - -} - -// SetLast sets the value for property 'last'. -func (t *CollectionPage) SetLast(k *url.URL) { - t.raw.SetLastIRI(k) - -} - -// LenItems returns the number of values this property contains. Each index be used with HasItems to determine if ResolveItems is safe to call or if raw handling would be needed.%!(EXTRA string=items) -func (t *CollectionPage) LenItems() (idx int) { - return t.raw.ItemsLen() - -} - -// ResolveItems passes the actual concrete type to the resolver for handing property items. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolveItems(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsItemsObject(idx) { - handled, err = r.dispatch(t.raw.GetItemsObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsItemsLink(idx) { - handled, err = r.dispatch(t.raw.GetItemsLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsItemsIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasItems returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasItems(idx int) (p Presence) { - p = NoPresence - if t.raw.IsItemsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsItemsLink(idx) { - p = ConvenientPresence - } else if t.raw.IsItemsIRI(idx) { - p = RawPresence - } - return - -} - -// AppendItems appends an 'Object' typed value. -func (t *CollectionPage) AppendItems(i vocab.ObjectType) { - t.raw.AppendItemsObject(i) - -} - -// PrependItems prepends an 'Object' typed value. -func (t *CollectionPage) PrependItems(i vocab.ObjectType) { - t.raw.PrependItemsObject(i) - -} - -// AppendItemsLink appends a 'Link' typed value. -func (t *CollectionPage) AppendItemsLink(i vocab.LinkType) { - t.raw.AppendItemsLink(i) - -} - -// PrependItemsLink prepends a 'Link' typed value. -func (t *CollectionPage) PrependItemsLink(i vocab.LinkType) { - t.raw.PrependItemsLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *CollectionPage) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *CollectionPage) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *CollectionPage) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *CollectionPage) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *CollectionPage) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *CollectionPage) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *CollectionPage) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *CollectionPage) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *CollectionPage) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *CollectionPage) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *CollectionPage) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *CollectionPage) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *CollectionPage) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *CollectionPage) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *CollectionPage) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *CollectionPage) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *CollectionPage) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *CollectionPage) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *CollectionPage) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *CollectionPage) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *CollectionPage) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *CollectionPage) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *CollectionPage) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *CollectionPage) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *CollectionPage) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *CollectionPage) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *CollectionPage) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *CollectionPage) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *CollectionPage) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *CollectionPage) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *CollectionPage) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *CollectionPage) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *CollectionPage) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *CollectionPage) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *CollectionPage) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *CollectionPage) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *CollectionPage) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *CollectionPage) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *CollectionPage) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *CollectionPage) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *CollectionPage) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *CollectionPage) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *CollectionPage) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *CollectionPage) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *CollectionPage) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *CollectionPage) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *CollectionPage) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *CollectionPage) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *CollectionPage) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *CollectionPage) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *CollectionPage) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *CollectionPage) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *CollectionPage) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *CollectionPage) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *CollectionPage) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *CollectionPage) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *CollectionPage) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *CollectionPage) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *CollectionPage) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *CollectionPage) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *CollectionPage) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *CollectionPage) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *CollectionPage) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *CollectionPage) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *CollectionPage) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *CollectionPage) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *CollectionPage) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *CollectionPage) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *CollectionPage) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *CollectionPage) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *CollectionPage) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *CollectionPage) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *CollectionPage) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *CollectionPage) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *CollectionPage) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *CollectionPage) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *CollectionPage) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *CollectionPage) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *CollectionPage) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *CollectionPage) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *CollectionPage) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *CollectionPage) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *CollectionPage) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *CollectionPage) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *CollectionPage) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *CollectionPage) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *CollectionPage) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *CollectionPage) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *CollectionPage) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *CollectionPage) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *CollectionPage) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *CollectionPage) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *CollectionPage) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *CollectionPage) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *CollectionPage) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *CollectionPage) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *CollectionPage) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *CollectionPage) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *CollectionPage) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *CollectionPage) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *CollectionPage) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *CollectionPage) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *CollectionPage) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *CollectionPage) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *CollectionPage) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *CollectionPage) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *CollectionPage) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *CollectionPage) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *CollectionPage) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *CollectionPage) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *CollectionPage) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *CollectionPage) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *CollectionPage) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *CollectionPage) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *CollectionPage) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *CollectionPage) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *CollectionPage) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *CollectionPage) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *CollectionPage) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *CollectionPage) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *CollectionPage) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *CollectionPage) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *CollectionPage) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *CollectionPage) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *CollectionPage) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *CollectionPage) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *CollectionPage) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *CollectionPage) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Used to represent ordered subsets of items from an OrderedCollection. Refer to the Activity Streams 2.0 Core for a complete description of the OrderedCollectionPage object. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type OrderedCollectionPage struct { - // The raw type from the vocab package - raw *vocab.OrderedCollectionPage -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *OrderedCollectionPage) Raw() (n *vocab.OrderedCollectionPage) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *OrderedCollectionPage) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// GetStartIndex attempts to get this 'startIndex' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetStartIndex() (r Resolution, k int64) { - r = Unresolved - handled := false - if t.raw.IsStartIndex() { - k = t.raw.GetStartIndex() - if handled { - r = Resolved - } - } else if t.raw.IsStartIndexIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartIndex returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasStartIndex() (p Presence) { - p = NoPresence - if t.raw.IsStartIndex() { - p = ConvenientPresence - } else if t.raw.IsStartIndexIRI() { - p = RawPresence - } - return - -} - -// SetStartIndex sets the value for property 'startIndex'. -func (t *OrderedCollectionPage) SetStartIndex(k int64) { - t.raw.SetStartIndex(k) - -} - -// GetNext attempts to get this 'next' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetNext() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsNextIRI() { - k = t.raw.GetNextIRI() - if handled { - r = Resolved - } - } else if t.raw.IsNextOrderedCollectionPage() { - r = RawResolutionNeeded - } else if t.raw.IsNextLink() { - r = RawResolutionNeeded - } - return - -} - -// HasNext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasNext() (p Presence) { - p = NoPresence - if t.raw.IsNextIRI() { - p = ConvenientPresence - } else if t.raw.IsNextOrderedCollectionPage() { - p = RawPresence - } else if t.raw.IsNextLink() { - p = RawPresence - } - return - -} - -// SetNext sets the value for property 'next'. -func (t *OrderedCollectionPage) SetNext(k *url.URL) { - t.raw.SetNextIRI(k) - -} - -// GetPrev attempts to get this 'prev' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetPrev() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsPrevIRI() { - k = t.raw.GetPrevIRI() - if handled { - r = Resolved - } - } else if t.raw.IsPrevOrderedCollectionPage() { - r = RawResolutionNeeded - } else if t.raw.IsPrevLink() { - r = RawResolutionNeeded - } - return - -} - -// HasPrev returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasPrev() (p Presence) { - p = NoPresence - if t.raw.IsPrevIRI() { - p = ConvenientPresence - } else if t.raw.IsPrevOrderedCollectionPage() { - p = RawPresence - } else if t.raw.IsPrevLink() { - p = RawPresence - } - return - -} - -// SetPrev sets the value for property 'prev'. -func (t *OrderedCollectionPage) SetPrev(k *url.URL) { - t.raw.SetPrevIRI(k) - -} - -// LenOrderedItems returns the number of values this property contains. Each index be used with HasOrderedItems to determine if ResolveOrderedItems is safe to call or if raw handling would be needed.%!(EXTRA string=orderedItems) -func (t *OrderedCollectionPage) LenOrderedItems() (idx int) { - return t.raw.OrderedItemsLen() - -} - -// ResolveOrderedItems passes the actual concrete type to the resolver for handing property orderedItems. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolveOrderedItems(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOrderedItemsObject(idx) { - handled, err = r.dispatch(t.raw.GetOrderedItemsObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOrderedItemsLink(idx) { - handled, err = r.dispatch(t.raw.GetOrderedItemsLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOrderedItemsIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrderedItems returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasOrderedItems(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOrderedItemsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOrderedItemsLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOrderedItemsIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrderedItems appends an 'Object' typed value. -func (t *OrderedCollectionPage) AppendOrderedItems(i vocab.ObjectType) { - t.raw.AppendOrderedItemsObject(i) - -} - -// PrependOrderedItems prepends an 'Object' typed value. -func (t *OrderedCollectionPage) PrependOrderedItems(i vocab.ObjectType) { - t.raw.PrependOrderedItemsObject(i) - -} - -// AppendOrderedItemsLink appends a 'Link' typed value. -func (t *OrderedCollectionPage) AppendOrderedItemsLink(i vocab.LinkType) { - t.raw.AppendOrderedItemsLink(i) - -} - -// PrependOrderedItemsLink prepends a 'Link' typed value. -func (t *OrderedCollectionPage) PrependOrderedItemsLink(i vocab.LinkType) { - t.raw.PrependOrderedItemsLink(i) - -} - -// GetCurrent attempts to get this 'current' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetCurrent() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCurrentIRI() { - k = t.raw.GetCurrentIRI() - if handled { - r = Resolved - } - } else if t.raw.IsCurrentOrderedCollectionPage() { - r = RawResolutionNeeded - } else if t.raw.IsCurrentLink() { - r = RawResolutionNeeded - } - return - -} - -// HasCurrent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasCurrent() (p Presence) { - p = NoPresence - if t.raw.IsCurrentIRI() { - p = ConvenientPresence - } else if t.raw.IsCurrentOrderedCollectionPage() { - p = RawPresence - } else if t.raw.IsCurrentLink() { - p = RawPresence - } - return - -} - -// SetCurrent sets the value for property 'current'. -func (t *OrderedCollectionPage) SetCurrent(k *url.URL) { - t.raw.SetCurrentIRI(k) - -} - -// GetFirst attempts to get this 'first' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetFirst() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsFirstIRI() { - k = t.raw.GetFirstIRI() - if handled { - r = Resolved - } - } else if t.raw.IsFirstOrderedCollectionPage() { - r = RawResolutionNeeded - } else if t.raw.IsFirstLink() { - r = RawResolutionNeeded - } - return - -} - -// HasFirst returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasFirst() (p Presence) { - p = NoPresence - if t.raw.IsFirstIRI() { - p = ConvenientPresence - } else if t.raw.IsFirstOrderedCollectionPage() { - p = RawPresence - } else if t.raw.IsFirstLink() { - p = RawPresence - } - return - -} - -// SetFirst sets the value for property 'first'. -func (t *OrderedCollectionPage) SetFirst(k *url.URL) { - t.raw.SetFirstIRI(k) - -} - -// GetLast attempts to get this 'last' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetLast() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsLastIRI() { - k = t.raw.GetLastIRI() - if handled { - r = Resolved - } - } else if t.raw.IsLastOrderedCollectionPage() { - r = RawResolutionNeeded - } else if t.raw.IsLastLink() { - r = RawResolutionNeeded - } - return - -} - -// HasLast returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasLast() (p Presence) { - p = NoPresence - if t.raw.IsLastIRI() { - p = ConvenientPresence - } else if t.raw.IsLastOrderedCollectionPage() { - p = RawPresence - } else if t.raw.IsLastLink() { - p = RawPresence - } - return - -} - -// SetLast sets the value for property 'last'. -func (t *OrderedCollectionPage) SetLast(k *url.URL) { - t.raw.SetLastIRI(k) - -} - -// GetTotalItems attempts to get this 'totalItems' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetTotalItems() (r Resolution, k int64) { - r = Unresolved - handled := false - if t.raw.IsTotalItems() { - k = t.raw.GetTotalItems() - if handled { - r = Resolved - } - } else if t.raw.IsTotalItemsIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasTotalItems returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasTotalItems() (p Presence) { - p = NoPresence - if t.raw.IsTotalItems() { - p = ConvenientPresence - } else if t.raw.IsTotalItemsIRI() { - p = RawPresence - } - return - -} - -// SetTotalItems sets the value for property 'totalItems'. -func (t *OrderedCollectionPage) SetTotalItems(k int64) { - t.raw.SetTotalItems(k) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *OrderedCollectionPage) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *OrderedCollectionPage) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *OrderedCollectionPage) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *OrderedCollectionPage) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *OrderedCollectionPage) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *OrderedCollectionPage) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *OrderedCollectionPage) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *OrderedCollectionPage) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *OrderedCollectionPage) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *OrderedCollectionPage) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *OrderedCollectionPage) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *OrderedCollectionPage) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *OrderedCollectionPage) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *OrderedCollectionPage) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *OrderedCollectionPage) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *OrderedCollectionPage) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *OrderedCollectionPage) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *OrderedCollectionPage) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *OrderedCollectionPage) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *OrderedCollectionPage) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *OrderedCollectionPage) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *OrderedCollectionPage) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *OrderedCollectionPage) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *OrderedCollectionPage) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *OrderedCollectionPage) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *OrderedCollectionPage) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *OrderedCollectionPage) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *OrderedCollectionPage) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *OrderedCollectionPage) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *OrderedCollectionPage) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *OrderedCollectionPage) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *OrderedCollectionPage) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *OrderedCollectionPage) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *OrderedCollectionPage) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *OrderedCollectionPage) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *OrderedCollectionPage) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *OrderedCollectionPage) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *OrderedCollectionPage) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *OrderedCollectionPage) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *OrderedCollectionPage) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *OrderedCollectionPage) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *OrderedCollectionPage) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *OrderedCollectionPage) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *OrderedCollectionPage) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *OrderedCollectionPage) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *OrderedCollectionPage) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *OrderedCollectionPage) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *OrderedCollectionPage) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *OrderedCollectionPage) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *OrderedCollectionPage) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *OrderedCollectionPage) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *OrderedCollectionPage) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *OrderedCollectionPage) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *OrderedCollectionPage) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *OrderedCollectionPage) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *OrderedCollectionPage) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *OrderedCollectionPage) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *OrderedCollectionPage) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *OrderedCollectionPage) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *OrderedCollectionPage) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *OrderedCollectionPage) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *OrderedCollectionPage) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *OrderedCollectionPage) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *OrderedCollectionPage) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *OrderedCollectionPage) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *OrderedCollectionPage) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *OrderedCollectionPage) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *OrderedCollectionPage) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *OrderedCollectionPage) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *OrderedCollectionPage) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *OrderedCollectionPage) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *OrderedCollectionPage) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *OrderedCollectionPage) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *OrderedCollectionPage) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *OrderedCollectionPage) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *OrderedCollectionPage) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *OrderedCollectionPage) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *OrderedCollectionPage) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *OrderedCollectionPage) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *OrderedCollectionPage) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *OrderedCollectionPage) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *OrderedCollectionPage) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *OrderedCollectionPage) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *OrderedCollectionPage) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *OrderedCollectionPage) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *OrderedCollectionPage) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *OrderedCollectionPage) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *OrderedCollectionPage) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *OrderedCollectionPage) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *OrderedCollectionPage) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *OrderedCollectionPage) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *OrderedCollectionPage) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *OrderedCollectionPage) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *OrderedCollectionPage) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *OrderedCollectionPage) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *OrderedCollectionPage) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *OrderedCollectionPage) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *OrderedCollectionPage) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *OrderedCollectionPage) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *OrderedCollectionPage) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *OrderedCollectionPage) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *OrderedCollectionPage) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *OrderedCollectionPage) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *OrderedCollectionPage) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *OrderedCollectionPage) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *OrderedCollectionPage) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *OrderedCollectionPage) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *OrderedCollectionPage) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *OrderedCollectionPage) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *OrderedCollectionPage) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *OrderedCollectionPage) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *OrderedCollectionPage) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *OrderedCollectionPage) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *OrderedCollectionPage) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *OrderedCollectionPage) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *OrderedCollectionPage) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *OrderedCollectionPage) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *OrderedCollectionPage) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *OrderedCollectionPage) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *OrderedCollectionPage) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *OrderedCollectionPage) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *OrderedCollectionPage) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *OrderedCollectionPage) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *OrderedCollectionPage) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *OrderedCollectionPage) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *OrderedCollectionPage) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *OrderedCollectionPage) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// ResolvePartOf passes the actual concrete type to the resolver for handing property partOf. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) ResolvePartOf(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPartOfLink() { - handled, err = r.dispatch(t.raw.GetPartOfLink()) - if handled { - s = Resolved - } - } else if t.raw.IsPartOfCollection() { - s = RawResolutionNeeded - } else if t.raw.IsPartOfIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasPartOf returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *OrderedCollectionPage) HasPartOf() (p Presence) { - p = NoPresence - if t.raw.IsPartOfLink() { - p = ConvenientPresence - } else if t.raw.IsPartOfCollection() { - p = RawPresence - } else if t.raw.IsPartOfIRI() { - p = RawPresence - } - return - -} - -// SetPartOf sets this value to be a 'Link' type. -func (t *OrderedCollectionPage) SetPartOf(i vocab.LinkType) { - t.raw.SetPartOfLink(i) - -} - -// Indicates that the actor accepts the object. The target property can be used in certain circumstances to indicate the context into which the object has been accepted. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Accept struct { - // The raw type from the vocab package - raw *vocab.Accept -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Accept) Raw() (n *vocab.Accept) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Accept) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Accept) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Accept) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Accept) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Accept) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Accept) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Accept) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Accept) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Accept) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Accept) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Accept) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Accept) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Accept) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Accept) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Accept) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Accept) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Accept) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Accept) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Accept) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Accept) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Accept) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Accept) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Accept) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Accept) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Accept) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Accept) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Accept) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Accept) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Accept) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Accept) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Accept) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Accept) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Accept) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Accept) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Accept) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Accept) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Accept) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Accept) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Accept) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Accept) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Accept) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Accept) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Accept) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Accept) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Accept) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Accept) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Accept) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Accept) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Accept) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Accept) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Accept) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Accept) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Accept) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Accept) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Accept) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Accept) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Accept) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Accept) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Accept) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Accept) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Accept) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Accept) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Accept) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Accept) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Accept) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Accept) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Accept) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Accept) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Accept) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Accept) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Accept) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Accept) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Accept) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Accept) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Accept) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Accept) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Accept) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Accept) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Accept) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Accept) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Accept) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Accept) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Accept) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Accept) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Accept) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Accept) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Accept) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Accept) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Accept) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Accept) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Accept) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Accept) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Accept) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Accept) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Accept) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Accept) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Accept) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Accept) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Accept) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Accept) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Accept) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Accept) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Accept) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Accept) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Accept) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Accept) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Accept) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Accept) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Accept) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Accept) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Accept) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Accept) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Accept) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Accept) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Accept) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Accept) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Accept) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Accept) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Accept) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Accept) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Accept) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Accept) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Accept) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Accept) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Accept) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Accept) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Accept) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Accept) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Accept) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Accept) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Accept) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Accept) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Accept) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Accept) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Accept) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Accept) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Accept) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Accept) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Accept) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Accept) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Accept) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Accept) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Accept) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Accept) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Accept) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Accept) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Accept) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Accept) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Accept) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Accept) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Accept) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Accept) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Accept) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Accept) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Accept) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Accept) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// A specialization of Accept indicating that the acceptance is tentative. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type TentativeAccept struct { - // The raw type from the vocab package - raw *vocab.TentativeAccept -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *TentativeAccept) Raw() (n *vocab.TentativeAccept) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *TentativeAccept) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *TentativeAccept) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *TentativeAccept) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *TentativeAccept) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *TentativeAccept) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *TentativeAccept) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *TentativeAccept) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *TentativeAccept) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *TentativeAccept) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *TentativeAccept) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *TentativeAccept) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *TentativeAccept) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *TentativeAccept) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *TentativeAccept) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *TentativeAccept) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *TentativeAccept) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *TentativeAccept) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *TentativeAccept) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *TentativeAccept) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *TentativeAccept) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *TentativeAccept) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *TentativeAccept) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *TentativeAccept) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *TentativeAccept) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *TentativeAccept) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *TentativeAccept) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *TentativeAccept) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *TentativeAccept) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *TentativeAccept) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *TentativeAccept) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *TentativeAccept) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *TentativeAccept) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *TentativeAccept) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *TentativeAccept) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *TentativeAccept) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *TentativeAccept) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *TentativeAccept) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *TentativeAccept) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *TentativeAccept) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *TentativeAccept) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *TentativeAccept) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *TentativeAccept) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *TentativeAccept) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *TentativeAccept) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *TentativeAccept) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *TentativeAccept) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *TentativeAccept) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *TentativeAccept) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *TentativeAccept) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *TentativeAccept) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *TentativeAccept) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *TentativeAccept) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *TentativeAccept) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *TentativeAccept) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *TentativeAccept) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *TentativeAccept) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *TentativeAccept) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *TentativeAccept) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *TentativeAccept) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *TentativeAccept) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *TentativeAccept) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *TentativeAccept) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *TentativeAccept) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *TentativeAccept) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *TentativeAccept) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *TentativeAccept) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *TentativeAccept) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *TentativeAccept) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *TentativeAccept) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *TentativeAccept) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *TentativeAccept) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *TentativeAccept) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *TentativeAccept) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *TentativeAccept) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *TentativeAccept) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *TentativeAccept) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *TentativeAccept) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *TentativeAccept) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *TentativeAccept) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *TentativeAccept) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *TentativeAccept) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *TentativeAccept) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *TentativeAccept) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *TentativeAccept) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *TentativeAccept) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *TentativeAccept) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *TentativeAccept) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *TentativeAccept) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *TentativeAccept) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *TentativeAccept) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *TentativeAccept) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *TentativeAccept) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *TentativeAccept) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *TentativeAccept) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *TentativeAccept) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *TentativeAccept) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *TentativeAccept) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *TentativeAccept) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *TentativeAccept) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *TentativeAccept) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *TentativeAccept) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *TentativeAccept) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *TentativeAccept) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *TentativeAccept) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *TentativeAccept) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *TentativeAccept) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *TentativeAccept) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *TentativeAccept) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *TentativeAccept) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *TentativeAccept) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *TentativeAccept) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *TentativeAccept) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *TentativeAccept) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *TentativeAccept) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *TentativeAccept) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *TentativeAccept) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *TentativeAccept) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *TentativeAccept) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *TentativeAccept) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *TentativeAccept) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *TentativeAccept) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *TentativeAccept) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *TentativeAccept) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *TentativeAccept) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *TentativeAccept) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *TentativeAccept) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *TentativeAccept) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *TentativeAccept) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *TentativeAccept) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *TentativeAccept) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *TentativeAccept) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *TentativeAccept) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *TentativeAccept) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *TentativeAccept) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *TentativeAccept) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *TentativeAccept) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *TentativeAccept) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *TentativeAccept) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *TentativeAccept) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *TentativeAccept) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *TentativeAccept) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *TentativeAccept) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *TentativeAccept) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *TentativeAccept) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *TentativeAccept) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *TentativeAccept) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *TentativeAccept) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *TentativeAccept) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *TentativeAccept) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *TentativeAccept) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *TentativeAccept) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *TentativeAccept) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *TentativeAccept) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeAccept) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeAccept) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *TentativeAccept) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor has added the object to the target. If the target property is not explicitly specified, the target would need to be determined implicitly by context. The origin can be used to identify the context from which the object originated. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Add struct { - // The raw type from the vocab package - raw *vocab.Add -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Add) Raw() (n *vocab.Add) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Add) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Add) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Add) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Add) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Add) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Add) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Add) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Add) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Add) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Add) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Add) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Add) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Add) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Add) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Add) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Add) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Add) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Add) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Add) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Add) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Add) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Add) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Add) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Add) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Add) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Add) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Add) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Add) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Add) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Add) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Add) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Add) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Add) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Add) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Add) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Add) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Add) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Add) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Add) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Add) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Add) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Add) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Add) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Add) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Add) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Add) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Add) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Add) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Add) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Add) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Add) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Add) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Add) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Add) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Add) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Add) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Add) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Add) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Add) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Add) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Add) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Add) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Add) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Add) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Add) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Add) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Add) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Add) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Add) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Add) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Add) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Add) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Add) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Add) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Add) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Add) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Add) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Add) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Add) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Add) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Add) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Add) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Add) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Add) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Add) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Add) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Add) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Add) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Add) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Add) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Add) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Add) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Add) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Add) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Add) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Add) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Add) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Add) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Add) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Add) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Add) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Add) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Add) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Add) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Add) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Add) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Add) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Add) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Add) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Add) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Add) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Add) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Add) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Add) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Add) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Add) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Add) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Add) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Add) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Add) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Add) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Add) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Add) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Add) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Add) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Add) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Add) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Add) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Add) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Add) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Add) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Add) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Add) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Add) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Add) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Add) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Add) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Add) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Add) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Add) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Add) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Add) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Add) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Add) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Add) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Add) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Add) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Add) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Add) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Add) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Add) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Add) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Add) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Add) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Add) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Add) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// An IntransitiveActivity that indicates that the actor has arrived at the location. The origin can be used to identify the context from which the actor originated. The target typically has no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Arrive struct { - // The raw type from the vocab package - raw *vocab.Arrive -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Arrive) Raw() (n *vocab.Arrive) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Arrive) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Arrive) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Arrive) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Arrive) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Arrive) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Arrive) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Arrive) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Arrive) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Arrive) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Arrive) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Arrive) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Arrive) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Arrive) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Arrive) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Arrive) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Arrive) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Arrive) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Arrive) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Arrive) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Arrive) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Arrive) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Arrive) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Arrive) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Arrive) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Arrive) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Arrive) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Arrive) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Arrive) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Arrive) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Arrive) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Arrive) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Arrive) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Arrive) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Arrive) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Arrive) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Arrive) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Arrive) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Arrive) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Arrive) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Arrive) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Arrive) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Arrive) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Arrive) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Arrive) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Arrive) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Arrive) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Arrive) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Arrive) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Arrive) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Arrive) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Arrive) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Arrive) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Arrive) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Arrive) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Arrive) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Arrive) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Arrive) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Arrive) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Arrive) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Arrive) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Arrive) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Arrive) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Arrive) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Arrive) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Arrive) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Arrive) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Arrive) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Arrive) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Arrive) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Arrive) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Arrive) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Arrive) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Arrive) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Arrive) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Arrive) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Arrive) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Arrive) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Arrive) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Arrive) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Arrive) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Arrive) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Arrive) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Arrive) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Arrive) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Arrive) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Arrive) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Arrive) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Arrive) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Arrive) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Arrive) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Arrive) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Arrive) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Arrive) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Arrive) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Arrive) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Arrive) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Arrive) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Arrive) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Arrive) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Arrive) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Arrive) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Arrive) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Arrive) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Arrive) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Arrive) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Arrive) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Arrive) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Arrive) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Arrive) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Arrive) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Arrive) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Arrive) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Arrive) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Arrive) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Arrive) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Arrive) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Arrive) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Arrive) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Arrive) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Arrive) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Arrive) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Arrive) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Arrive) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Arrive) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Arrive) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Arrive) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Arrive) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Arrive) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Arrive) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Arrive) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Arrive) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Arrive) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Arrive) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Arrive) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Arrive) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Arrive) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Arrive) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Arrive) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Arrive) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Arrive) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Arrive) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Arrive) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Arrive) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Arrive) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Arrive) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Arrive) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Arrive) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Arrive) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Arrive) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Arrive) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Arrive) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Arrive) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor has created the object. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Create struct { - // The raw type from the vocab package - raw *vocab.Create -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Create) Raw() (n *vocab.Create) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Create) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Create) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Create) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Create) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Create) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Create) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Create) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Create) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Create) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Create) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Create) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Create) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Create) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Create) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Create) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Create) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Create) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Create) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Create) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Create) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Create) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Create) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Create) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Create) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Create) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Create) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Create) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Create) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Create) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Create) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Create) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Create) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Create) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Create) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Create) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Create) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Create) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Create) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Create) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Create) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Create) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Create) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Create) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Create) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Create) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Create) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Create) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Create) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Create) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Create) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Create) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Create) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Create) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Create) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Create) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Create) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Create) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Create) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Create) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Create) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Create) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Create) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Create) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Create) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Create) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Create) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Create) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Create) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Create) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Create) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Create) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Create) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Create) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Create) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Create) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Create) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Create) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Create) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Create) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Create) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Create) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Create) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Create) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Create) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Create) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Create) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Create) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Create) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Create) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Create) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Create) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Create) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Create) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Create) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Create) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Create) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Create) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Create) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Create) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Create) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Create) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Create) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Create) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Create) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Create) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Create) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Create) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Create) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Create) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Create) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Create) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Create) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Create) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Create) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Create) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Create) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Create) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Create) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Create) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Create) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Create) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Create) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Create) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Create) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Create) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Create) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Create) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Create) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Create) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Create) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Create) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Create) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Create) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Create) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Create) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Create) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Create) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Create) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Create) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Create) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Create) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Create) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Create) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Create) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Create) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Create) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Create) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Create) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Create) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Create) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Create) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Create) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Create) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Create) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Create) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Create) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor has deleted the object. If specified, the origin indicates the context from which the object was deleted. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Delete struct { - // The raw type from the vocab package - raw *vocab.Delete -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Delete) Raw() (n *vocab.Delete) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Delete) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Delete) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Delete) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Delete) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Delete) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Delete) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Delete) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Delete) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Delete) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Delete) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Delete) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Delete) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Delete) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Delete) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Delete) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Delete) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Delete) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Delete) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Delete) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Delete) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Delete) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Delete) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Delete) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Delete) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Delete) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Delete) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Delete) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Delete) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Delete) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Delete) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Delete) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Delete) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Delete) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Delete) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Delete) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Delete) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Delete) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Delete) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Delete) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Delete) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Delete) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Delete) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Delete) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Delete) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Delete) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Delete) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Delete) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Delete) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Delete) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Delete) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Delete) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Delete) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Delete) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Delete) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Delete) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Delete) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Delete) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Delete) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Delete) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Delete) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Delete) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Delete) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Delete) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Delete) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Delete) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Delete) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Delete) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Delete) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Delete) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Delete) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Delete) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Delete) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Delete) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Delete) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Delete) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Delete) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Delete) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Delete) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Delete) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Delete) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Delete) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Delete) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Delete) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Delete) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Delete) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Delete) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Delete) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Delete) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Delete) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Delete) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Delete) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Delete) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Delete) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Delete) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Delete) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Delete) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Delete) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Delete) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Delete) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Delete) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Delete) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Delete) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Delete) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Delete) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Delete) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Delete) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Delete) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Delete) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Delete) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Delete) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Delete) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Delete) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Delete) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Delete) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Delete) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Delete) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Delete) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Delete) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Delete) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Delete) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Delete) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Delete) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Delete) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Delete) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Delete) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Delete) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Delete) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Delete) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Delete) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Delete) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Delete) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Delete) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Delete) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Delete) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Delete) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Delete) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Delete) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Delete) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Delete) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Delete) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Delete) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Delete) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Delete) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Delete) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Delete) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Delete) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Delete) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Delete) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Delete) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Delete) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Delete) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Delete) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Delete) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Delete) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Delete) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Delete) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor is "following" the object. Following is defined in the sense typically used within Social systems in which the actor is interested in any activity performed by or on the object. The target and origin typically have no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Follow struct { - // The raw type from the vocab package - raw *vocab.Follow -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Follow) Raw() (n *vocab.Follow) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Follow) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Follow) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Follow) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Follow) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Follow) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Follow) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Follow) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Follow) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Follow) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Follow) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Follow) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Follow) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Follow) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Follow) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Follow) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Follow) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Follow) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Follow) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Follow) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Follow) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Follow) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Follow) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Follow) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Follow) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Follow) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Follow) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Follow) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Follow) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Follow) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Follow) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Follow) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Follow) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Follow) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Follow) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Follow) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Follow) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Follow) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Follow) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Follow) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Follow) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Follow) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Follow) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Follow) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Follow) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Follow) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Follow) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Follow) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Follow) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Follow) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Follow) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Follow) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Follow) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Follow) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Follow) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Follow) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Follow) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Follow) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Follow) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Follow) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Follow) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Follow) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Follow) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Follow) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Follow) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Follow) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Follow) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Follow) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Follow) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Follow) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Follow) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Follow) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Follow) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Follow) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Follow) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Follow) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Follow) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Follow) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Follow) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Follow) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Follow) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Follow) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Follow) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Follow) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Follow) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Follow) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Follow) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Follow) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Follow) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Follow) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Follow) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Follow) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Follow) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Follow) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Follow) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Follow) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Follow) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Follow) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Follow) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Follow) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Follow) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Follow) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Follow) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Follow) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Follow) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Follow) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Follow) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Follow) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Follow) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Follow) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Follow) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Follow) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Follow) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Follow) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Follow) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Follow) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Follow) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Follow) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Follow) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Follow) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Follow) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Follow) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Follow) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Follow) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Follow) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Follow) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Follow) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Follow) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Follow) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Follow) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Follow) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Follow) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Follow) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Follow) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Follow) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Follow) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Follow) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Follow) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Follow) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Follow) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Follow) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Follow) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Follow) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Follow) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Follow) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Follow) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Follow) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Follow) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Follow) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Follow) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Follow) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Follow) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Follow) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Follow) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Follow) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Follow) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Follow) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor is ignoring the object. The target and origin typically have no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Ignore struct { - // The raw type from the vocab package - raw *vocab.Ignore -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Ignore) Raw() (n *vocab.Ignore) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Ignore) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Ignore) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Ignore) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Ignore) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Ignore) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Ignore) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Ignore) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Ignore) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Ignore) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Ignore) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Ignore) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Ignore) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Ignore) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Ignore) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Ignore) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Ignore) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Ignore) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Ignore) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Ignore) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Ignore) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Ignore) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Ignore) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Ignore) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Ignore) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Ignore) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Ignore) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Ignore) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Ignore) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Ignore) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Ignore) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Ignore) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Ignore) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Ignore) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Ignore) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Ignore) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Ignore) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Ignore) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Ignore) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Ignore) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Ignore) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Ignore) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Ignore) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Ignore) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Ignore) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Ignore) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Ignore) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Ignore) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Ignore) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Ignore) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Ignore) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Ignore) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Ignore) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Ignore) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Ignore) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Ignore) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Ignore) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Ignore) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Ignore) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Ignore) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Ignore) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Ignore) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Ignore) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Ignore) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Ignore) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Ignore) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Ignore) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Ignore) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Ignore) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Ignore) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Ignore) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Ignore) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Ignore) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Ignore) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Ignore) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Ignore) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Ignore) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Ignore) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Ignore) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Ignore) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Ignore) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Ignore) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Ignore) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Ignore) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Ignore) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Ignore) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Ignore) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Ignore) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Ignore) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Ignore) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Ignore) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Ignore) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Ignore) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Ignore) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Ignore) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Ignore) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Ignore) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Ignore) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Ignore) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Ignore) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Ignore) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Ignore) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Ignore) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Ignore) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Ignore) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Ignore) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Ignore) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Ignore) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Ignore) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Ignore) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Ignore) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Ignore) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Ignore) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Ignore) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Ignore) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Ignore) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Ignore) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Ignore) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Ignore) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Ignore) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Ignore) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Ignore) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Ignore) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Ignore) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Ignore) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Ignore) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Ignore) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Ignore) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Ignore) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Ignore) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Ignore) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Ignore) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Ignore) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Ignore) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Ignore) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Ignore) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Ignore) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Ignore) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Ignore) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Ignore) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Ignore) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Ignore) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Ignore) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Ignore) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Ignore) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Ignore) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Ignore) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Ignore) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Ignore) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Ignore) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Ignore) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Ignore) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Ignore) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Ignore) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Ignore) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Ignore) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Ignore) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor has joined the object. The target and origin typically have no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Join struct { - // The raw type from the vocab package - raw *vocab.Join -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Join) Raw() (n *vocab.Join) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Join) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Join) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Join) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Join) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Join) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Join) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Join) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Join) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Join) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Join) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Join) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Join) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Join) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Join) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Join) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Join) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Join) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Join) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Join) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Join) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Join) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Join) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Join) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Join) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Join) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Join) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Join) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Join) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Join) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Join) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Join) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Join) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Join) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Join) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Join) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Join) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Join) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Join) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Join) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Join) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Join) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Join) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Join) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Join) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Join) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Join) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Join) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Join) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Join) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Join) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Join) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Join) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Join) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Join) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Join) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Join) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Join) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Join) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Join) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Join) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Join) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Join) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Join) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Join) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Join) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Join) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Join) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Join) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Join) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Join) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Join) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Join) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Join) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Join) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Join) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Join) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Join) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Join) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Join) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Join) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Join) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Join) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Join) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Join) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Join) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Join) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Join) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Join) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Join) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Join) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Join) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Join) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Join) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Join) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Join) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Join) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Join) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Join) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Join) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Join) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Join) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Join) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Join) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Join) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Join) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Join) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Join) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Join) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Join) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Join) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Join) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Join) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Join) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Join) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Join) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Join) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Join) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Join) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Join) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Join) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Join) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Join) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Join) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Join) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Join) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Join) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Join) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Join) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Join) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Join) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Join) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Join) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Join) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Join) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Join) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Join) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Join) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Join) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Join) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Join) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Join) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Join) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Join) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Join) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Join) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Join) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Join) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Join) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Join) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Join) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Join) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Join) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Join) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Join) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Join) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Join) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor has left the object. The target and origin typically have no meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Leave struct { - // The raw type from the vocab package - raw *vocab.Leave -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Leave) Raw() (n *vocab.Leave) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Leave) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Leave) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Leave) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Leave) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Leave) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Leave) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Leave) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Leave) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Leave) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Leave) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Leave) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Leave) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Leave) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Leave) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Leave) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Leave) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Leave) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Leave) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Leave) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Leave) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Leave) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Leave) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Leave) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Leave) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Leave) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Leave) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Leave) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Leave) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Leave) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Leave) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Leave) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Leave) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Leave) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Leave) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Leave) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Leave) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Leave) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Leave) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Leave) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Leave) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Leave) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Leave) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Leave) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Leave) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Leave) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Leave) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Leave) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Leave) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Leave) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Leave) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Leave) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Leave) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Leave) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Leave) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Leave) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Leave) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Leave) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Leave) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Leave) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Leave) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Leave) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Leave) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Leave) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Leave) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Leave) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Leave) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Leave) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Leave) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Leave) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Leave) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Leave) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Leave) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Leave) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Leave) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Leave) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Leave) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Leave) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Leave) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Leave) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Leave) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Leave) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Leave) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Leave) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Leave) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Leave) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Leave) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Leave) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Leave) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Leave) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Leave) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Leave) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Leave) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Leave) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Leave) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Leave) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Leave) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Leave) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Leave) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Leave) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Leave) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Leave) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Leave) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Leave) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Leave) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Leave) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Leave) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Leave) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Leave) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Leave) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Leave) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Leave) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Leave) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Leave) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Leave) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Leave) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Leave) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Leave) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Leave) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Leave) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Leave) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Leave) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Leave) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Leave) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Leave) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Leave) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Leave) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Leave) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Leave) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Leave) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Leave) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Leave) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Leave) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Leave) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Leave) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Leave) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Leave) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Leave) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Leave) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Leave) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Leave) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Leave) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Leave) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Leave) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Leave) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Leave) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Leave) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Leave) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Leave) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Leave) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Leave) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Leave) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Leave) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Leave) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Leave) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Leave) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Leave) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor likes, recommends or endorses the object. The target and origin typically have no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Like struct { - // The raw type from the vocab package - raw *vocab.Like -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Like) Raw() (n *vocab.Like) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Like) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Like) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Like) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Like) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Like) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Like) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Like) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Like) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Like) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Like) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Like) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Like) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Like) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Like) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Like) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Like) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Like) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Like) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Like) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Like) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Like) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Like) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Like) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Like) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Like) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Like) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Like) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Like) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Like) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Like) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Like) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Like) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Like) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Like) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Like) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Like) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Like) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Like) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Like) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Like) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Like) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Like) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Like) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Like) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Like) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Like) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Like) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Like) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Like) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Like) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Like) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Like) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Like) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Like) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Like) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Like) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Like) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Like) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Like) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Like) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Like) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Like) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Like) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Like) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Like) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Like) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Like) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Like) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Like) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Like) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Like) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Like) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Like) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Like) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Like) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Like) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Like) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Like) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Like) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Like) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Like) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Like) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Like) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Like) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Like) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Like) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Like) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Like) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Like) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Like) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Like) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Like) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Like) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Like) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Like) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Like) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Like) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Like) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Like) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Like) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Like) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Like) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Like) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Like) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Like) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Like) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Like) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Like) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Like) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Like) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Like) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Like) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Like) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Like) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Like) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Like) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Like) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Like) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Like) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Like) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Like) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Like) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Like) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Like) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Like) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Like) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Like) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Like) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Like) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Like) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Like) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Like) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Like) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Like) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Like) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Like) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Like) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Like) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Like) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Like) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Like) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Like) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Like) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Like) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Like) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Like) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Like) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Like) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Like) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Like) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Like) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Like) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Like) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Like) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Like) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Like) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor is offering the object. If specified, the target indicates the entity to which the object is being offered. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Offer struct { - // The raw type from the vocab package - raw *vocab.Offer -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Offer) Raw() (n *vocab.Offer) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Offer) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Offer) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Offer) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Offer) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Offer) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Offer) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Offer) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Offer) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Offer) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Offer) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Offer) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Offer) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Offer) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Offer) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Offer) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Offer) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Offer) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Offer) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Offer) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Offer) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Offer) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Offer) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Offer) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Offer) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Offer) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Offer) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Offer) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Offer) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Offer) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Offer) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Offer) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Offer) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Offer) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Offer) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Offer) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Offer) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Offer) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Offer) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Offer) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Offer) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Offer) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Offer) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Offer) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Offer) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Offer) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Offer) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Offer) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Offer) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Offer) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Offer) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Offer) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Offer) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Offer) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Offer) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Offer) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Offer) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Offer) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Offer) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Offer) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Offer) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Offer) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Offer) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Offer) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Offer) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Offer) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Offer) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Offer) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Offer) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Offer) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Offer) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Offer) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Offer) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Offer) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Offer) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Offer) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Offer) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Offer) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Offer) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Offer) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Offer) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Offer) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Offer) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Offer) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Offer) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Offer) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Offer) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Offer) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Offer) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Offer) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Offer) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Offer) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Offer) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Offer) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Offer) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Offer) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Offer) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Offer) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Offer) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Offer) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Offer) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Offer) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Offer) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Offer) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Offer) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Offer) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Offer) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Offer) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Offer) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Offer) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Offer) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Offer) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Offer) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Offer) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Offer) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Offer) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Offer) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Offer) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Offer) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Offer) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Offer) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Offer) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Offer) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Offer) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Offer) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Offer) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Offer) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Offer) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Offer) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Offer) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Offer) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Offer) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Offer) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Offer) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Offer) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Offer) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Offer) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Offer) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Offer) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Offer) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Offer) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Offer) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Offer) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Offer) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Offer) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Offer) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Offer) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Offer) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Offer) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Offer) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Offer) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Offer) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Offer) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Offer) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Offer) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Offer) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Offer) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// A specialization of Offer in which the actor is extending an invitation for the object to the target. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Invite struct { - // The raw type from the vocab package - raw *vocab.Invite -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Invite) Raw() (n *vocab.Invite) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Invite) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Invite) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Invite) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Invite) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Invite) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Invite) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Invite) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Invite) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Invite) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Invite) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Invite) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Invite) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Invite) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Invite) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Invite) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Invite) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Invite) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Invite) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Invite) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Invite) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Invite) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Invite) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Invite) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Invite) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Invite) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Invite) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Invite) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Invite) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Invite) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Invite) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Invite) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Invite) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Invite) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Invite) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Invite) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Invite) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Invite) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Invite) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Invite) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Invite) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Invite) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Invite) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Invite) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Invite) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Invite) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Invite) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Invite) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Invite) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Invite) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Invite) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Invite) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Invite) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Invite) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Invite) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Invite) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Invite) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Invite) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Invite) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Invite) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Invite) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Invite) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Invite) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Invite) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Invite) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Invite) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Invite) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Invite) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Invite) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Invite) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Invite) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Invite) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Invite) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Invite) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Invite) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Invite) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Invite) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Invite) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Invite) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Invite) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Invite) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Invite) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Invite) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Invite) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Invite) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Invite) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Invite) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Invite) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Invite) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Invite) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Invite) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Invite) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Invite) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Invite) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Invite) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Invite) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Invite) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Invite) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Invite) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Invite) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Invite) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Invite) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Invite) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Invite) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Invite) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Invite) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Invite) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Invite) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Invite) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Invite) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Invite) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Invite) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Invite) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Invite) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Invite) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Invite) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Invite) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Invite) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Invite) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Invite) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Invite) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Invite) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Invite) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Invite) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Invite) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Invite) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Invite) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Invite) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Invite) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Invite) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Invite) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Invite) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Invite) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Invite) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Invite) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Invite) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Invite) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Invite) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Invite) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Invite) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Invite) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Invite) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Invite) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Invite) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Invite) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Invite) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Invite) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Invite) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Invite) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Invite) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Invite) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Invite) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Invite) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Invite) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Invite) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Invite) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Invite) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor is rejecting the object. The target and origin typically have no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Reject struct { - // The raw type from the vocab package - raw *vocab.Reject -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Reject) Raw() (n *vocab.Reject) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Reject) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Reject) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Reject) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Reject) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Reject) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Reject) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Reject) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Reject) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Reject) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Reject) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Reject) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Reject) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Reject) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Reject) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Reject) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Reject) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Reject) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Reject) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Reject) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Reject) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Reject) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Reject) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Reject) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Reject) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Reject) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Reject) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Reject) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Reject) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Reject) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Reject) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Reject) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Reject) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Reject) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Reject) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Reject) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Reject) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Reject) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Reject) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Reject) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Reject) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Reject) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Reject) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Reject) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Reject) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Reject) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Reject) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Reject) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Reject) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Reject) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Reject) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Reject) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Reject) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Reject) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Reject) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Reject) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Reject) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Reject) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Reject) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Reject) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Reject) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Reject) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Reject) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Reject) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Reject) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Reject) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Reject) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Reject) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Reject) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Reject) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Reject) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Reject) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Reject) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Reject) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Reject) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Reject) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Reject) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Reject) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Reject) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Reject) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Reject) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Reject) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Reject) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Reject) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Reject) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Reject) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Reject) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Reject) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Reject) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Reject) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Reject) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Reject) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Reject) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Reject) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Reject) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Reject) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Reject) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Reject) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Reject) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Reject) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Reject) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Reject) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Reject) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Reject) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Reject) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Reject) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Reject) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Reject) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Reject) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Reject) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Reject) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Reject) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Reject) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Reject) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Reject) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Reject) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Reject) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Reject) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Reject) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Reject) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Reject) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Reject) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Reject) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Reject) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Reject) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Reject) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Reject) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Reject) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Reject) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Reject) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Reject) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Reject) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Reject) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Reject) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Reject) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Reject) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Reject) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Reject) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Reject) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Reject) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Reject) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Reject) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Reject) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Reject) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Reject) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Reject) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Reject) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Reject) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Reject) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Reject) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Reject) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Reject) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Reject) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Reject) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Reject) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Reject) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Reject) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// A specialization of Reject in which the rejection is considered tentative. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type TentativeReject struct { - // The raw type from the vocab package - raw *vocab.TentativeReject -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *TentativeReject) Raw() (n *vocab.TentativeReject) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *TentativeReject) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *TentativeReject) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *TentativeReject) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *TentativeReject) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *TentativeReject) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *TentativeReject) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *TentativeReject) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *TentativeReject) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *TentativeReject) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *TentativeReject) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *TentativeReject) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *TentativeReject) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *TentativeReject) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *TentativeReject) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *TentativeReject) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *TentativeReject) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *TentativeReject) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *TentativeReject) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *TentativeReject) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *TentativeReject) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *TentativeReject) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *TentativeReject) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *TentativeReject) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *TentativeReject) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *TentativeReject) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *TentativeReject) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *TentativeReject) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *TentativeReject) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *TentativeReject) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *TentativeReject) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *TentativeReject) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *TentativeReject) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *TentativeReject) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *TentativeReject) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *TentativeReject) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *TentativeReject) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *TentativeReject) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *TentativeReject) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *TentativeReject) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *TentativeReject) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *TentativeReject) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *TentativeReject) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *TentativeReject) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *TentativeReject) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *TentativeReject) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *TentativeReject) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *TentativeReject) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *TentativeReject) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *TentativeReject) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *TentativeReject) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *TentativeReject) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *TentativeReject) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *TentativeReject) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *TentativeReject) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *TentativeReject) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *TentativeReject) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *TentativeReject) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *TentativeReject) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *TentativeReject) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *TentativeReject) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *TentativeReject) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *TentativeReject) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *TentativeReject) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *TentativeReject) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *TentativeReject) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *TentativeReject) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *TentativeReject) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *TentativeReject) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *TentativeReject) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *TentativeReject) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *TentativeReject) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *TentativeReject) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *TentativeReject) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *TentativeReject) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *TentativeReject) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *TentativeReject) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *TentativeReject) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *TentativeReject) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *TentativeReject) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *TentativeReject) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *TentativeReject) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *TentativeReject) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *TentativeReject) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *TentativeReject) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *TentativeReject) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *TentativeReject) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *TentativeReject) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *TentativeReject) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *TentativeReject) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *TentativeReject) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *TentativeReject) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *TentativeReject) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *TentativeReject) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *TentativeReject) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *TentativeReject) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *TentativeReject) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *TentativeReject) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *TentativeReject) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *TentativeReject) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *TentativeReject) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *TentativeReject) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *TentativeReject) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *TentativeReject) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *TentativeReject) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *TentativeReject) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *TentativeReject) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *TentativeReject) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *TentativeReject) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *TentativeReject) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *TentativeReject) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *TentativeReject) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *TentativeReject) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *TentativeReject) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *TentativeReject) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *TentativeReject) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *TentativeReject) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *TentativeReject) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *TentativeReject) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *TentativeReject) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *TentativeReject) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *TentativeReject) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *TentativeReject) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *TentativeReject) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *TentativeReject) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *TentativeReject) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *TentativeReject) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *TentativeReject) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *TentativeReject) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *TentativeReject) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *TentativeReject) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *TentativeReject) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *TentativeReject) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *TentativeReject) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *TentativeReject) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *TentativeReject) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *TentativeReject) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *TentativeReject) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *TentativeReject) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *TentativeReject) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *TentativeReject) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *TentativeReject) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *TentativeReject) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *TentativeReject) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *TentativeReject) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *TentativeReject) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *TentativeReject) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *TentativeReject) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *TentativeReject) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *TentativeReject) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *TentativeReject) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *TentativeReject) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *TentativeReject) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *TentativeReject) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *TentativeReject) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *TentativeReject) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *TentativeReject) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor is removing the object. If specified, the origin indicates the context from which the object is being removed. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Remove struct { - // The raw type from the vocab package - raw *vocab.Remove -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Remove) Raw() (n *vocab.Remove) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Remove) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Remove) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Remove) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Remove) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Remove) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Remove) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Remove) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Remove) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Remove) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Remove) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Remove) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Remove) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Remove) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Remove) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Remove) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Remove) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Remove) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Remove) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Remove) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Remove) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Remove) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Remove) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Remove) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Remove) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Remove) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Remove) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Remove) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Remove) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Remove) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Remove) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Remove) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Remove) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Remove) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Remove) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Remove) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Remove) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Remove) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Remove) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Remove) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Remove) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Remove) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Remove) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Remove) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Remove) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Remove) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Remove) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Remove) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Remove) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Remove) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Remove) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Remove) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Remove) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Remove) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Remove) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Remove) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Remove) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Remove) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Remove) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Remove) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Remove) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Remove) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Remove) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Remove) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Remove) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Remove) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Remove) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Remove) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Remove) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Remove) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Remove) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Remove) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Remove) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Remove) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Remove) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Remove) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Remove) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Remove) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Remove) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Remove) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Remove) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Remove) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Remove) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Remove) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Remove) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Remove) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Remove) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Remove) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Remove) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Remove) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Remove) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Remove) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Remove) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Remove) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Remove) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Remove) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Remove) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Remove) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Remove) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Remove) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Remove) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Remove) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Remove) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Remove) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Remove) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Remove) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Remove) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Remove) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Remove) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Remove) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Remove) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Remove) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Remove) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Remove) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Remove) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Remove) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Remove) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Remove) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Remove) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Remove) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Remove) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Remove) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Remove) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Remove) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Remove) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Remove) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Remove) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Remove) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Remove) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Remove) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Remove) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Remove) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Remove) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Remove) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Remove) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Remove) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Remove) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Remove) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Remove) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Remove) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Remove) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Remove) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Remove) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Remove) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Remove) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Remove) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Remove) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Remove) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Remove) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Remove) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Remove) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Remove) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Remove) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Remove) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Remove) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Remove) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Remove) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor is undoing the object. In most cases, the object will be an Activity describing some previously performed action (for instance, a person may have previously "liked" an article but, for whatever reason, might choose to undo that like at some later point in time). The target and origin typically have no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Undo struct { - // The raw type from the vocab package - raw *vocab.Undo -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Undo) Raw() (n *vocab.Undo) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Undo) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Undo) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Undo) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Undo) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Undo) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Undo) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Undo) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Undo) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Undo) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Undo) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Undo) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Undo) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Undo) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Undo) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Undo) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Undo) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Undo) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Undo) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Undo) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Undo) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Undo) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Undo) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Undo) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Undo) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Undo) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Undo) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Undo) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Undo) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Undo) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Undo) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Undo) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Undo) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Undo) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Undo) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Undo) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Undo) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Undo) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Undo) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Undo) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Undo) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Undo) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Undo) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Undo) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Undo) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Undo) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Undo) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Undo) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Undo) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Undo) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Undo) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Undo) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Undo) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Undo) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Undo) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Undo) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Undo) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Undo) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Undo) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Undo) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Undo) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Undo) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Undo) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Undo) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Undo) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Undo) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Undo) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Undo) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Undo) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Undo) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Undo) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Undo) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Undo) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Undo) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Undo) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Undo) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Undo) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Undo) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Undo) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Undo) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Undo) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Undo) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Undo) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Undo) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Undo) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Undo) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Undo) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Undo) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Undo) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Undo) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Undo) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Undo) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Undo) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Undo) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Undo) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Undo) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Undo) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Undo) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Undo) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Undo) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Undo) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Undo) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Undo) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Undo) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Undo) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Undo) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Undo) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Undo) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Undo) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Undo) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Undo) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Undo) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Undo) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Undo) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Undo) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Undo) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Undo) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Undo) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Undo) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Undo) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Undo) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Undo) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Undo) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Undo) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Undo) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Undo) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Undo) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Undo) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Undo) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Undo) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Undo) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Undo) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Undo) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Undo) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Undo) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Undo) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Undo) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Undo) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Undo) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Undo) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Undo) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Undo) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Undo) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Undo) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Undo) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Undo) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Undo) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Undo) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Undo) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Undo) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Undo) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Undo) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Undo) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Undo) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Undo) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Undo) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Undo) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor has updated the object. Note, however, that this vocabulary does not define a mechanism for describing the actual set of modifications made to object. The target and origin typically have no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Update struct { - // The raw type from the vocab package - raw *vocab.Update -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Update) Raw() (n *vocab.Update) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Update) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Update) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Update) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Update) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Update) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Update) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Update) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Update) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Update) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Update) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Update) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Update) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Update) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Update) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Update) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Update) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Update) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Update) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Update) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Update) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Update) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Update) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Update) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Update) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Update) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Update) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Update) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Update) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Update) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Update) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Update) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Update) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Update) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Update) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Update) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Update) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Update) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Update) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Update) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Update) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Update) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Update) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Update) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Update) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Update) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Update) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Update) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Update) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Update) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Update) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Update) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Update) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Update) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Update) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Update) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Update) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Update) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Update) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Update) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Update) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Update) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Update) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Update) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Update) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Update) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Update) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Update) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Update) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Update) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Update) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Update) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Update) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Update) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Update) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Update) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Update) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Update) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Update) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Update) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Update) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Update) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Update) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Update) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Update) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Update) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Update) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Update) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Update) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Update) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Update) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Update) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Update) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Update) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Update) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Update) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Update) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Update) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Update) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Update) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Update) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Update) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Update) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Update) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Update) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Update) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Update) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Update) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Update) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Update) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Update) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Update) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Update) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Update) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Update) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Update) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Update) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Update) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Update) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Update) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Update) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Update) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Update) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Update) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Update) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Update) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Update) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Update) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Update) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Update) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Update) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Update) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Update) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Update) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Update) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Update) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Update) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Update) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Update) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Update) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Update) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Update) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Update) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Update) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Update) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Update) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Update) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Update) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Update) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Update) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Update) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Update) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Update) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Update) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Update) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Update) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Update) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor has viewed the object. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type View struct { - // The raw type from the vocab package - raw *vocab.View -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *View) Raw() (n *vocab.View) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *View) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *View) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *View) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *View) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *View) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *View) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *View) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *View) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *View) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *View) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *View) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *View) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *View) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *View) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *View) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *View) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *View) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *View) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *View) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *View) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *View) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *View) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *View) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *View) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *View) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *View) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *View) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *View) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *View) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *View) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *View) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *View) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *View) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *View) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *View) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *View) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *View) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *View) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *View) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *View) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *View) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *View) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *View) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *View) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *View) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *View) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *View) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *View) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *View) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *View) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *View) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *View) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *View) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *View) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *View) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *View) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *View) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *View) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *View) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *View) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *View) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *View) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *View) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *View) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *View) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *View) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *View) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *View) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *View) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *View) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *View) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *View) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *View) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *View) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *View) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *View) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *View) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *View) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *View) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *View) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *View) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *View) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *View) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *View) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *View) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *View) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *View) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *View) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *View) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *View) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *View) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *View) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *View) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *View) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *View) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *View) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *View) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *View) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *View) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *View) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *View) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *View) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *View) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *View) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *View) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *View) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *View) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *View) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *View) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *View) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *View) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *View) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *View) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *View) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *View) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *View) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *View) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *View) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *View) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *View) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *View) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *View) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *View) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *View) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *View) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *View) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *View) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *View) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *View) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *View) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *View) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *View) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *View) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *View) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *View) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *View) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *View) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *View) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *View) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *View) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *View) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *View) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *View) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *View) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *View) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *View) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *View) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *View) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *View) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *View) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *View) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *View) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *View) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *View) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *View) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *View) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor has listened to the object. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Listen struct { - // The raw type from the vocab package - raw *vocab.Listen -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Listen) Raw() (n *vocab.Listen) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Listen) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Listen) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Listen) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Listen) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Listen) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Listen) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Listen) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Listen) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Listen) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Listen) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Listen) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Listen) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Listen) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Listen) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Listen) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Listen) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Listen) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Listen) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Listen) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Listen) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Listen) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Listen) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Listen) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Listen) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Listen) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Listen) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Listen) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Listen) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Listen) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Listen) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Listen) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Listen) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Listen) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Listen) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Listen) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Listen) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Listen) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Listen) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Listen) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Listen) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Listen) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Listen) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Listen) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Listen) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Listen) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Listen) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Listen) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Listen) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Listen) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Listen) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Listen) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Listen) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Listen) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Listen) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Listen) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Listen) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Listen) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Listen) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Listen) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Listen) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Listen) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Listen) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Listen) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Listen) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Listen) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Listen) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Listen) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Listen) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Listen) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Listen) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Listen) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Listen) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Listen) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Listen) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Listen) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Listen) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Listen) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Listen) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Listen) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Listen) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Listen) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Listen) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Listen) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Listen) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Listen) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Listen) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Listen) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Listen) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Listen) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Listen) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Listen) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Listen) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Listen) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Listen) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Listen) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Listen) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Listen) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Listen) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Listen) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Listen) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Listen) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Listen) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Listen) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Listen) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Listen) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Listen) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Listen) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Listen) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Listen) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Listen) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Listen) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Listen) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Listen) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Listen) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Listen) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Listen) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Listen) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Listen) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Listen) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Listen) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Listen) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Listen) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Listen) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Listen) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Listen) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Listen) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Listen) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Listen) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Listen) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Listen) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Listen) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Listen) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Listen) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Listen) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Listen) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Listen) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Listen) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Listen) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Listen) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Listen) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Listen) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Listen) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Listen) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Listen) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Listen) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Listen) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Listen) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Listen) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Listen) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Listen) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Listen) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Listen) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Listen) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Listen) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Listen) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Listen) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor has read the object. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Read struct { - // The raw type from the vocab package - raw *vocab.Read -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Read) Raw() (n *vocab.Read) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Read) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Read) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Read) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Read) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Read) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Read) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Read) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Read) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Read) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Read) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Read) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Read) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Read) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Read) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Read) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Read) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Read) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Read) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Read) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Read) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Read) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Read) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Read) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Read) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Read) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Read) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Read) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Read) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Read) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Read) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Read) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Read) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Read) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Read) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Read) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Read) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Read) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Read) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Read) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Read) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Read) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Read) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Read) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Read) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Read) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Read) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Read) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Read) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Read) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Read) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Read) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Read) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Read) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Read) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Read) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Read) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Read) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Read) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Read) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Read) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Read) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Read) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Read) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Read) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Read) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Read) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Read) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Read) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Read) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Read) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Read) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Read) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Read) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Read) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Read) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Read) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Read) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Read) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Read) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Read) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Read) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Read) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Read) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Read) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Read) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Read) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Read) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Read) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Read) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Read) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Read) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Read) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Read) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Read) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Read) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Read) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Read) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Read) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Read) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Read) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Read) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Read) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Read) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Read) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Read) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Read) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Read) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Read) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Read) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Read) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Read) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Read) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Read) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Read) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Read) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Read) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Read) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Read) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Read) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Read) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Read) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Read) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Read) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Read) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Read) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Read) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Read) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Read) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Read) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Read) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Read) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Read) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Read) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Read) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Read) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Read) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Read) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Read) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Read) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Read) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Read) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Read) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Read) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Read) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Read) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Read) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Read) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Read) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Read) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Read) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Read) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Read) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Read) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Read) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Read) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Read) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor has moved object from origin to target. If the origin or target are not specified, either can be determined by context. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Move struct { - // The raw type from the vocab package - raw *vocab.Move -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Move) Raw() (n *vocab.Move) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Move) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Move) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Move) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Move) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Move) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Move) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Move) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Move) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Move) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Move) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Move) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Move) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Move) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Move) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Move) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Move) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Move) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Move) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Move) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Move) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Move) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Move) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Move) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Move) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Move) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Move) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Move) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Move) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Move) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Move) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Move) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Move) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Move) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Move) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Move) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Move) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Move) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Move) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Move) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Move) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Move) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Move) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Move) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Move) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Move) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Move) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Move) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Move) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Move) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Move) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Move) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Move) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Move) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Move) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Move) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Move) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Move) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Move) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Move) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Move) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Move) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Move) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Move) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Move) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Move) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Move) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Move) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Move) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Move) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Move) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Move) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Move) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Move) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Move) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Move) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Move) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Move) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Move) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Move) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Move) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Move) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Move) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Move) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Move) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Move) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Move) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Move) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Move) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Move) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Move) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Move) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Move) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Move) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Move) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Move) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Move) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Move) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Move) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Move) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Move) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Move) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Move) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Move) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Move) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Move) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Move) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Move) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Move) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Move) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Move) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Move) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Move) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Move) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Move) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Move) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Move) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Move) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Move) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Move) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Move) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Move) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Move) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Move) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Move) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Move) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Move) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Move) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Move) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Move) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Move) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Move) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Move) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Move) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Move) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Move) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Move) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Move) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Move) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Move) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Move) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Move) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Move) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Move) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Move) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Move) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Move) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Move) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Move) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Move) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Move) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Move) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Move) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Move) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Move) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Move) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Move) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor is traveling to target from origin. Travel is an IntransitiveObject whose actor specifies the direct object. If the target or origin are not specified, either can be determined by context. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Travel struct { - // The raw type from the vocab package - raw *vocab.Travel -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Travel) Raw() (n *vocab.Travel) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Travel) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Travel) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Travel) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Travel) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Travel) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Travel) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Travel) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Travel) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Travel) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Travel) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Travel) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Travel) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Travel) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Travel) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Travel) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Travel) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Travel) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Travel) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Travel) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Travel) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Travel) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Travel) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Travel) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Travel) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Travel) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Travel) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Travel) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Travel) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Travel) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Travel) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Travel) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Travel) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Travel) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Travel) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Travel) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Travel) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Travel) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Travel) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Travel) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Travel) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Travel) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Travel) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Travel) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Travel) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Travel) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Travel) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Travel) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Travel) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Travel) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Travel) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Travel) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Travel) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Travel) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Travel) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Travel) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Travel) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Travel) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Travel) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Travel) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Travel) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Travel) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Travel) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Travel) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Travel) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Travel) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Travel) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Travel) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Travel) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Travel) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Travel) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Travel) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Travel) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Travel) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Travel) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Travel) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Travel) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Travel) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Travel) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Travel) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Travel) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Travel) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Travel) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Travel) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Travel) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Travel) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Travel) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Travel) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Travel) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Travel) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Travel) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Travel) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Travel) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Travel) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Travel) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Travel) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Travel) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Travel) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Travel) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Travel) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Travel) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Travel) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Travel) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Travel) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Travel) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Travel) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Travel) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Travel) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Travel) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Travel) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Travel) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Travel) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Travel) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Travel) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Travel) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Travel) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Travel) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Travel) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Travel) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Travel) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Travel) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Travel) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Travel) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Travel) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Travel) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Travel) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Travel) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Travel) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Travel) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Travel) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Travel) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Travel) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Travel) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Travel) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Travel) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Travel) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Travel) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Travel) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Travel) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Travel) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Travel) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Travel) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Travel) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Travel) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Travel) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Travel) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Travel) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Travel) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Travel) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Travel) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Travel) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Travel) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Travel) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor is calling the target's attention the object. The origin typically has no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Announce struct { - // The raw type from the vocab package - raw *vocab.Announce -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Announce) Raw() (n *vocab.Announce) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Announce) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Announce) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Announce) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Announce) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Announce) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Announce) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Announce) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Announce) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Announce) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Announce) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Announce) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Announce) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Announce) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Announce) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Announce) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Announce) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Announce) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Announce) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Announce) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Announce) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Announce) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Announce) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Announce) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Announce) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Announce) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Announce) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Announce) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Announce) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Announce) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Announce) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Announce) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Announce) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Announce) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Announce) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Announce) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Announce) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Announce) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Announce) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Announce) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Announce) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Announce) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Announce) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Announce) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Announce) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Announce) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Announce) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Announce) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Announce) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Announce) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Announce) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Announce) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Announce) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Announce) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Announce) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Announce) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Announce) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Announce) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Announce) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Announce) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Announce) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Announce) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Announce) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Announce) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Announce) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Announce) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Announce) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Announce) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Announce) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Announce) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Announce) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Announce) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Announce) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Announce) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Announce) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Announce) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Announce) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Announce) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Announce) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Announce) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Announce) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Announce) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Announce) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Announce) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Announce) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Announce) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Announce) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Announce) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Announce) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Announce) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Announce) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Announce) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Announce) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Announce) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Announce) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Announce) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Announce) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Announce) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Announce) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Announce) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Announce) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Announce) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Announce) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Announce) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Announce) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Announce) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Announce) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Announce) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Announce) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Announce) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Announce) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Announce) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Announce) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Announce) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Announce) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Announce) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Announce) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Announce) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Announce) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Announce) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Announce) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Announce) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Announce) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Announce) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Announce) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Announce) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Announce) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Announce) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Announce) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Announce) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Announce) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Announce) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Announce) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Announce) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Announce) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Announce) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Announce) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Announce) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Announce) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Announce) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Announce) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Announce) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Announce) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Announce) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Announce) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Announce) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Announce) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Announce) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Announce) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Announce) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Announce) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Announce) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Announce) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Announce) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Announce) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Announce) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Announce) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor is blocking the object. Blocking is a stronger form of Ignore. The typical use is to support social systems that allow one user to block activities or content of other users. The target and origin typically have no defined meaning. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Block struct { - // The raw type from the vocab package - raw *vocab.Block -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Block) Raw() (n *vocab.Block) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Block) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Block) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Block) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Block) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Block) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Block) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Block) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Block) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Block) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Block) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Block) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Block) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Block) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Block) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Block) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Block) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Block) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Block) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Block) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Block) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Block) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Block) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Block) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Block) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Block) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Block) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Block) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Block) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Block) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Block) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Block) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Block) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Block) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Block) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Block) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Block) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Block) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Block) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Block) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Block) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Block) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Block) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Block) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Block) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Block) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Block) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Block) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Block) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Block) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Block) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Block) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Block) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Block) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Block) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Block) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Block) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Block) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Block) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Block) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Block) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Block) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Block) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Block) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Block) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Block) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Block) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Block) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Block) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Block) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Block) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Block) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Block) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Block) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Block) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Block) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Block) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Block) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Block) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Block) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Block) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Block) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Block) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Block) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Block) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Block) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Block) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Block) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Block) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Block) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Block) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Block) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Block) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Block) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Block) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Block) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Block) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Block) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Block) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Block) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Block) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Block) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Block) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Block) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Block) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Block) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Block) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Block) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Block) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Block) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Block) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Block) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Block) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Block) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Block) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Block) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Block) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Block) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Block) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Block) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Block) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Block) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Block) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Block) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Block) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Block) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Block) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Block) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Block) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Block) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Block) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Block) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Block) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Block) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Block) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Block) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Block) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Block) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Block) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Block) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Block) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Block) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Block) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Block) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Block) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Block) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Block) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Block) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Block) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Block) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Block) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Block) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Block) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Block) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Block) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Block) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Block) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor is "flagging" the object. Flagging is defined in the sense common to many social platforms as reporting content as being inappropriate for any number of reasons. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Flag struct { - // The raw type from the vocab package - raw *vocab.Flag -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Flag) Raw() (n *vocab.Flag) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Flag) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Flag) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Flag) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Flag) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Flag) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Flag) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Flag) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Flag) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Flag) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Flag) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Flag) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Flag) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Flag) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Flag) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Flag) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Flag) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Flag) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Flag) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Flag) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Flag) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Flag) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Flag) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Flag) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Flag) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Flag) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Flag) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Flag) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Flag) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Flag) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Flag) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Flag) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Flag) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Flag) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Flag) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Flag) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Flag) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Flag) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Flag) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Flag) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Flag) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Flag) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Flag) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Flag) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Flag) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Flag) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Flag) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Flag) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Flag) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Flag) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Flag) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Flag) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Flag) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Flag) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Flag) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Flag) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Flag) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Flag) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Flag) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Flag) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Flag) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Flag) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Flag) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Flag) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Flag) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Flag) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Flag) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Flag) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Flag) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Flag) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Flag) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Flag) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Flag) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Flag) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Flag) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Flag) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Flag) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Flag) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Flag) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Flag) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Flag) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Flag) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Flag) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Flag) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Flag) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Flag) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Flag) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Flag) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Flag) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Flag) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Flag) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Flag) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Flag) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Flag) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Flag) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Flag) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Flag) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Flag) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Flag) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Flag) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Flag) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Flag) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Flag) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Flag) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Flag) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Flag) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Flag) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Flag) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Flag) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Flag) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Flag) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Flag) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Flag) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Flag) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Flag) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Flag) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Flag) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Flag) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Flag) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Flag) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Flag) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Flag) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Flag) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Flag) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Flag) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Flag) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Flag) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Flag) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Flag) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Flag) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Flag) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Flag) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Flag) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Flag) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Flag) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Flag) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Flag) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Flag) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Flag) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Flag) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Flag) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Flag) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Flag) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Flag) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Flag) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Flag) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Flag) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Flag) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Flag) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Flag) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Flag) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Flag) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Flag) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Flag) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Flag) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Flag) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Flag) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Indicates that the actor dislikes the object. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Dislike struct { - // The raw type from the vocab package - raw *vocab.Dislike -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Dislike) Raw() (n *vocab.Dislike) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Dislike) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Dislike) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Dislike) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Dislike) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Dislike) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Dislike) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Dislike) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Dislike) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Dislike) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Dislike) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Dislike) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Dislike) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Dislike) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Dislike) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Dislike) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Dislike) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Dislike) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Dislike) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Dislike) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Dislike) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Dislike) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Dislike) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Dislike) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Dislike) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Dislike) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Dislike) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Dislike) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Dislike) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Dislike) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Dislike) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Dislike) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Dislike) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Dislike) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Dislike) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Dislike) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Dislike) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Dislike) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Dislike) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Dislike) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Dislike) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Dislike) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Dislike) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Dislike) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Dislike) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Dislike) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Dislike) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Dislike) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Dislike) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Dislike) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Dislike) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Dislike) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Dislike) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Dislike) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Dislike) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Dislike) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Dislike) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Dislike) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Dislike) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Dislike) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Dislike) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Dislike) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Dislike) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Dislike) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Dislike) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Dislike) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Dislike) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Dislike) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Dislike) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Dislike) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Dislike) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Dislike) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Dislike) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Dislike) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Dislike) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Dislike) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Dislike) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Dislike) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Dislike) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Dislike) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Dislike) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Dislike) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Dislike) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Dislike) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Dislike) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Dislike) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Dislike) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Dislike) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Dislike) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Dislike) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Dislike) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Dislike) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Dislike) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Dislike) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Dislike) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Dislike) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Dislike) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Dislike) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Dislike) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Dislike) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Dislike) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Dislike) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Dislike) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Dislike) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Dislike) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Dislike) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Dislike) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Dislike) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Dislike) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Dislike) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Dislike) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Dislike) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Dislike) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Dislike) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Dislike) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Dislike) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Dislike) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Dislike) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Dislike) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Dislike) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Dislike) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Dislike) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Dislike) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Dislike) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Dislike) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Dislike) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Dislike) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Dislike) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Dislike) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Dislike) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Dislike) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Dislike) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Dislike) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Dislike) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Dislike) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Dislike) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Dislike) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Dislike) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Dislike) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Dislike) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Dislike) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Dislike) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Dislike) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Dislike) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Dislike) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Dislike) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Dislike) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Dislike) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Dislike) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Dislike) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Dislike) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Dislike) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Dislike) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Dislike) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Dislike) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Dislike) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Dislike) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Represents a question being asked. Question objects are an extension of IntransitiveActivity. That is, the Question object is an Activity, but the direct object is the question itself and therefore it would not contain an object property. Either of the anyOf and oneOf properties may be used to express possible answers, but a Question object must not have both properties. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Question struct { - // The raw type from the vocab package - raw *vocab.Question -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Question) Raw() (n *vocab.Question) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Question) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenOneOf returns the number of values this property contains. Each index be used with HasOneOf to determine if ResolveOneOf is safe to call or if raw handling would be needed.%!(EXTRA string=oneOf) -func (t *Question) LenOneOf() (idx int) { - return t.raw.OneOfLen() - -} - -// ResolveOneOf passes the actual concrete type to the resolver for handing property oneOf. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveOneOf(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOneOfObject(idx) { - handled, err = r.dispatch(t.raw.GetOneOfObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOneOfLink(idx) { - handled, err = r.dispatch(t.raw.GetOneOfLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOneOfIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOneOf returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasOneOf(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOneOfObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOneOfLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOneOfIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOneOf appends an 'Object' typed value. -func (t *Question) AppendOneOf(i vocab.ObjectType) { - t.raw.AppendOneOfObject(i) - -} - -// PrependOneOf prepends an 'Object' typed value. -func (t *Question) PrependOneOf(i vocab.ObjectType) { - t.raw.PrependOneOfObject(i) - -} - -// AppendOneOfLink appends a 'Link' typed value. -func (t *Question) AppendOneOfLink(i vocab.LinkType) { - t.raw.AppendOneOfLink(i) - -} - -// PrependOneOfLink prepends a 'Link' typed value. -func (t *Question) PrependOneOfLink(i vocab.LinkType) { - t.raw.PrependOneOfLink(i) - -} - -// LenAnyOf returns the number of values this property contains. Each index be used with HasAnyOf to determine if ResolveAnyOf is safe to call or if raw handling would be needed.%!(EXTRA string=anyOf) -func (t *Question) LenAnyOf() (idx int) { - return t.raw.AnyOfLen() - -} - -// ResolveAnyOf passes the actual concrete type to the resolver for handing property anyOf. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveAnyOf(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAnyOfObject(idx) { - handled, err = r.dispatch(t.raw.GetAnyOfObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAnyOfLink(idx) { - handled, err = r.dispatch(t.raw.GetAnyOfLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAnyOfIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAnyOf returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasAnyOf(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAnyOfObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAnyOfLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAnyOfIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAnyOf appends an 'Object' typed value. -func (t *Question) AppendAnyOf(i vocab.ObjectType) { - t.raw.AppendAnyOfObject(i) - -} - -// PrependAnyOf prepends an 'Object' typed value. -func (t *Question) PrependAnyOf(i vocab.ObjectType) { - t.raw.PrependAnyOfObject(i) - -} - -// AppendAnyOfLink appends a 'Link' typed value. -func (t *Question) AppendAnyOfLink(i vocab.LinkType) { - t.raw.AppendAnyOfLink(i) - -} - -// PrependAnyOfLink prepends a 'Link' typed value. -func (t *Question) PrependAnyOfLink(i vocab.LinkType) { - t.raw.PrependAnyOfLink(i) - -} - -// LenClosed returns the number of values this property contains. Each index be used with HasClosed to determine if GetClosed is safe to call or if raw handling would be needed.%!(EXTRA string=closed) -func (t *Question) LenClosed() (idx int) { - return t.raw.ClosedLen() - -} - -// GetClosed attempts to get this 'closed' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetClosed(idx int) (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsClosedDateTime(idx) { - k = t.raw.GetClosedDateTime(idx) - if handled { - r = Resolved - } - } else if t.raw.IsClosedBoolean(idx) { - r = RawResolutionNeeded - } else if t.raw.IsClosedObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsClosedLink(idx) { - r = RawResolutionNeeded - } else if t.raw.IsClosedIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendClosed appends the value for property 'closed'. -func (t *Question) AppendClosed(k time.Time) { - t.raw.AppendClosedDateTime(k) - -} - -// PrependClosed prepends the value for property 'closed'. -func (t *Question) PrependClosed(k time.Time) { - t.raw.PrependClosedDateTime(k) - -} - -// RemoveClosed deletes the value from the specified index for property 'closed'. -func (t *Question) RemoveClosed(idx int) { - t.raw.RemoveClosedDateTime(idx) - -} - -// HasClosed returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasClosed(idx int) (p Presence) { - p = NoPresence - if t.raw.IsClosedDateTime(idx) { - p = ConvenientPresence - } else if t.raw.IsClosedBoolean(idx) { - p = RawPresence - } else if t.raw.IsClosedObject(idx) { - p = RawPresence - } else if t.raw.IsClosedLink(idx) { - p = RawPresence - } else if t.raw.IsClosedIRI(idx) { - p = RawPresence - } - return - -} - -// LenActor returns the number of values this property contains. Each index be used with HasActor to determine if GetActor is safe to call or if raw handling would be needed.%!(EXTRA string=actor) -func (t *Question) LenActor() (idx int) { - return t.raw.ActorLen() - -} - -// GetActor attempts to get this 'actor' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetActor(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsActorIRI(idx) { - k = t.raw.GetActorIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsActorObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsActorLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendActor appends the value for property 'actor'. -func (t *Question) AppendActor(k *url.URL) { - t.raw.AppendActorIRI(k) - -} - -// PrependActor prepends the value for property 'actor'. -func (t *Question) PrependActor(k *url.URL) { - t.raw.PrependActorIRI(k) - -} - -// RemoveActor deletes the value from the specified index for property 'actor'. -func (t *Question) RemoveActor(idx int) { - t.raw.RemoveActorIRI(idx) - -} - -// HasActor returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasActor(idx int) (p Presence) { - p = NoPresence - if t.raw.IsActorIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsActorLink(idx) { - p = RawPresence - } else if t.raw.IsActorIRI(idx) { - p = RawPresence - } - return - -} - -// LenTarget returns the number of values this property contains. Each index be used with HasTarget to determine if GetTarget is safe to call or if raw handling would be needed.%!(EXTRA string=target) -func (t *Question) LenTarget() (idx int) { - return t.raw.TargetLen() - -} - -// GetTarget attempts to get this 'target' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetTarget(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsTargetIRI(idx) { - k = t.raw.GetTargetIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsTargetObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsTargetLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTarget appends the value for property 'target'. -func (t *Question) AppendTarget(k *url.URL) { - t.raw.AppendTargetIRI(k) - -} - -// PrependTarget prepends the value for property 'target'. -func (t *Question) PrependTarget(k *url.URL) { - t.raw.PrependTargetIRI(k) - -} - -// RemoveTarget deletes the value from the specified index for property 'target'. -func (t *Question) RemoveTarget(idx int) { - t.raw.RemoveTargetIRI(idx) - -} - -// HasTarget returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasTarget(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTargetIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsTargetLink(idx) { - p = RawPresence - } else if t.raw.IsTargetIRI(idx) { - p = RawPresence - } - return - -} - -// LenResult returns the number of values this property contains. Each index be used with HasResult to determine if ResolveResult is safe to call or if raw handling would be needed.%!(EXTRA string=result) -func (t *Question) LenResult() (idx int) { - return t.raw.ResultLen() - -} - -// ResolveResult passes the actual concrete type to the resolver for handing property result. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveResult(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsResultObject(idx) { - handled, err = r.dispatch(t.raw.GetResultObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultLink(idx) { - handled, err = r.dispatch(t.raw.GetResultLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsResultIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasResult returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasResult(idx int) (p Presence) { - p = NoPresence - if t.raw.IsResultObject(idx) { - p = ConvenientPresence - } else if t.raw.IsResultLink(idx) { - p = ConvenientPresence - } else if t.raw.IsResultIRI(idx) { - p = RawPresence - } - return - -} - -// AppendResult appends an 'Object' typed value. -func (t *Question) AppendResult(i vocab.ObjectType) { - t.raw.AppendResultObject(i) - -} - -// PrependResult prepends an 'Object' typed value. -func (t *Question) PrependResult(i vocab.ObjectType) { - t.raw.PrependResultObject(i) - -} - -// AppendResultLink appends a 'Link' typed value. -func (t *Question) AppendResultLink(i vocab.LinkType) { - t.raw.AppendResultLink(i) - -} - -// PrependResultLink prepends a 'Link' typed value. -func (t *Question) PrependResultLink(i vocab.LinkType) { - t.raw.PrependResultLink(i) - -} - -// LenOrigin returns the number of values this property contains. Each index be used with HasOrigin to determine if ResolveOrigin is safe to call or if raw handling would be needed.%!(EXTRA string=origin) -func (t *Question) LenOrigin() (idx int) { - return t.raw.OriginLen() - -} - -// ResolveOrigin passes the actual concrete type to the resolver for handing property origin. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveOrigin(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOriginObject(idx) { - handled, err = r.dispatch(t.raw.GetOriginObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginLink(idx) { - handled, err = r.dispatch(t.raw.GetOriginLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsOriginIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasOrigin returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasOrigin(idx int) (p Presence) { - p = NoPresence - if t.raw.IsOriginObject(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginLink(idx) { - p = ConvenientPresence - } else if t.raw.IsOriginIRI(idx) { - p = RawPresence - } - return - -} - -// AppendOrigin appends an 'Object' typed value. -func (t *Question) AppendOrigin(i vocab.ObjectType) { - t.raw.AppendOriginObject(i) - -} - -// PrependOrigin prepends an 'Object' typed value. -func (t *Question) PrependOrigin(i vocab.ObjectType) { - t.raw.PrependOriginObject(i) - -} - -// AppendOriginLink appends a 'Link' typed value. -func (t *Question) AppendOriginLink(i vocab.LinkType) { - t.raw.AppendOriginLink(i) - -} - -// PrependOriginLink prepends a 'Link' typed value. -func (t *Question) PrependOriginLink(i vocab.LinkType) { - t.raw.PrependOriginLink(i) - -} - -// LenInstrument returns the number of values this property contains. Each index be used with HasInstrument to determine if ResolveInstrument is safe to call or if raw handling would be needed.%!(EXTRA string=instrument) -func (t *Question) LenInstrument() (idx int) { - return t.raw.InstrumentLen() - -} - -// ResolveInstrument passes the actual concrete type to the resolver for handing property instrument. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveInstrument(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInstrumentObject(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentLink(idx) { - handled, err = r.dispatch(t.raw.GetInstrumentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsInstrumentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasInstrument returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasInstrument(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInstrumentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsInstrumentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendInstrument appends an 'Object' typed value. -func (t *Question) AppendInstrument(i vocab.ObjectType) { - t.raw.AppendInstrumentObject(i) - -} - -// PrependInstrument prepends an 'Object' typed value. -func (t *Question) PrependInstrument(i vocab.ObjectType) { - t.raw.PrependInstrumentObject(i) - -} - -// AppendInstrumentLink appends a 'Link' typed value. -func (t *Question) AppendInstrumentLink(i vocab.LinkType) { - t.raw.AppendInstrumentLink(i) - -} - -// PrependInstrumentLink prepends a 'Link' typed value. -func (t *Question) PrependInstrumentLink(i vocab.LinkType) { - t.raw.PrependInstrumentLink(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Question) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Question) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Question) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Question) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Question) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Question) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Question) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Question) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Question) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Question) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Question) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Question) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Question) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Question) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Question) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Question) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Question) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Question) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Question) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Question) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Question) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Question) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Question) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Question) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Question) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Question) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Question) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Question) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Question) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Question) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Question) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Question) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Question) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Question) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Question) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Question) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Question) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Question) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Question) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Question) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Question) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Question) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Question) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Question) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Question) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Question) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Question) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Question) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Question) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Question) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Question) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Question) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Question) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Question) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Question) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Question) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Question) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Question) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Question) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Question) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Question) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Question) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Question) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Question) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Question) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Question) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Question) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Question) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Question) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Question) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Question) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Question) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Question) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Question) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Question) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Question) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Question) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Question) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Question) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Question) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Question) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Question) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Question) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Question) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Question) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Question) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Question) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Question) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Question) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Question) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Question) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Question) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Question) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Question) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Question) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Question) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Question) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Question) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Question) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Question) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Question) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Question) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Question) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Question) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Question) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Question) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Question) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Question) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Question) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Question) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Question) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Question) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Question) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Question) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Question) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Question) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Question) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Question) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Question) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Question) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Question) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Question) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Question) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Question) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Question) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Question) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Question) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Question) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Describes a software application. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Application struct { - // The raw type from the vocab package - raw *vocab.Application -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Application) Raw() (n *vocab.Application) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Application) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Application) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Application) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Application) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Application) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Application) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Application) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Application) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Application) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Application) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Application) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Application) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Application) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Application) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Application) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Application) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Application) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Application) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Application) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Application) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Application) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Application) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Application) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Application) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Application) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Application) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Application) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Application) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Application) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Application) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Application) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Application) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Application) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Application) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Application) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Application) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Application) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Application) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Application) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Application) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Application) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Application) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Application) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Application) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Application) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Application) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Application) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Application) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Application) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Application) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Application) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Application) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Application) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Application) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Application) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Application) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Application) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Application) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Application) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Application) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Application) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Application) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Application) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Application) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Application) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Application) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Application) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Application) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Application) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Application) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Application) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Application) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Application) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Application) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Application) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Application) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Application) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Application) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Application) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Application) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Application) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Application) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Application) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Application) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Application) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Application) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Application) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Application) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Application) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Application) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Application) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Application) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Application) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Application) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Application) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Application) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Application) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Application) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Application) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Application) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Application) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Application) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Application) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Application) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Application) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Application) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Application) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Application) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Application) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Application) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Application) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Application) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Application) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Application) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Application) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Application) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Application) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Application) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Application) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Application) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Application) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Application) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Application) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Application) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Application) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Application) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Application) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Application) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Application) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Represents a formal or informal collective of Actors. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Group struct { - // The raw type from the vocab package - raw *vocab.Group -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Group) Raw() (n *vocab.Group) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Group) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Group) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Group) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Group) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Group) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Group) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Group) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Group) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Group) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Group) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Group) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Group) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Group) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Group) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Group) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Group) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Group) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Group) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Group) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Group) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Group) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Group) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Group) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Group) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Group) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Group) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Group) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Group) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Group) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Group) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Group) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Group) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Group) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Group) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Group) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Group) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Group) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Group) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Group) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Group) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Group) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Group) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Group) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Group) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Group) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Group) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Group) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Group) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Group) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Group) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Group) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Group) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Group) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Group) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Group) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Group) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Group) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Group) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Group) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Group) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Group) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Group) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Group) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Group) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Group) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Group) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Group) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Group) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Group) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Group) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Group) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Group) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Group) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Group) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Group) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Group) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Group) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Group) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Group) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Group) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Group) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Group) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Group) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Group) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Group) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Group) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Group) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Group) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Group) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Group) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Group) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Group) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Group) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Group) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Group) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Group) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Group) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Group) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Group) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Group) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Group) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Group) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Group) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Group) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Group) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Group) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Group) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Group) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Group) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Group) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Group) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Group) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Group) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Group) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Group) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Group) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Group) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Group) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Group) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Group) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Group) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Group) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Group) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Group) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Group) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Group) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Group) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Group) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Group) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Represents an organization. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Organization struct { - // The raw type from the vocab package - raw *vocab.Organization -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Organization) Raw() (n *vocab.Organization) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Organization) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Organization) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Organization) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Organization) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Organization) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Organization) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Organization) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Organization) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Organization) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Organization) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Organization) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Organization) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Organization) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Organization) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Organization) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Organization) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Organization) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Organization) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Organization) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Organization) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Organization) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Organization) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Organization) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Organization) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Organization) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Organization) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Organization) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Organization) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Organization) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Organization) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Organization) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Organization) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Organization) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Organization) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Organization) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Organization) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Organization) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Organization) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Organization) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Organization) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Organization) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Organization) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Organization) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Organization) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Organization) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Organization) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Organization) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Organization) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Organization) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Organization) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Organization) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Organization) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Organization) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Organization) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Organization) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Organization) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Organization) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Organization) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Organization) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Organization) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Organization) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Organization) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Organization) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Organization) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Organization) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Organization) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Organization) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Organization) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Organization) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Organization) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Organization) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Organization) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Organization) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Organization) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Organization) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Organization) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Organization) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Organization) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Organization) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Organization) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Organization) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Organization) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Organization) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Organization) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Organization) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Organization) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Organization) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Organization) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Organization) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Organization) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Organization) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Organization) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Organization) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Organization) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Organization) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Organization) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Organization) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Organization) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Organization) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Organization) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Organization) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Organization) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Organization) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Organization) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Organization) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Organization) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Organization) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Organization) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Organization) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Organization) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Organization) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Organization) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Organization) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Organization) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Organization) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Organization) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Organization) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Organization) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Organization) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Organization) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Organization) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Organization) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Organization) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Organization) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Organization) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Organization) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Organization) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Organization) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Organization) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Represents an individual person. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Person struct { - // The raw type from the vocab package - raw *vocab.Person -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Person) Raw() (n *vocab.Person) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Person) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Person) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Person) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Person) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Person) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Person) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Person) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Person) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Person) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Person) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Person) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Person) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Person) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Person) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Person) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Person) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Person) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Person) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Person) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Person) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Person) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Person) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Person) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Person) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Person) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Person) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Person) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Person) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Person) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Person) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Person) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Person) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Person) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Person) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Person) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Person) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Person) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Person) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Person) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Person) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Person) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Person) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Person) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Person) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Person) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Person) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Person) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Person) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Person) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Person) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Person) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Person) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Person) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Person) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Person) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Person) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Person) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Person) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Person) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Person) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Person) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Person) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Person) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Person) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Person) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Person) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Person) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Person) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Person) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Person) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Person) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Person) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Person) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Person) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Person) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Person) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Person) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Person) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Person) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Person) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Person) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Person) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Person) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Person) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Person) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Person) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Person) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Person) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Person) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Person) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Person) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Person) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Person) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Person) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Person) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Person) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Person) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Person) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Person) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Person) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Person) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Person) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Person) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Person) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Person) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Person) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Person) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Person) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Person) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Person) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Person) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Person) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Person) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Person) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Person) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Person) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Person) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Person) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Person) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Person) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Person) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Person) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Person) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Person) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Person) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Person) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Person) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Person) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Person) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Represents a service of any kind. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Service struct { - // The raw type from the vocab package - raw *vocab.Service -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Service) Raw() (n *vocab.Service) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Service) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Service) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Service) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Service) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Service) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Service) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Service) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Service) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Service) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Service) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Service) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Service) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Service) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Service) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Service) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Service) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Service) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Service) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Service) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Service) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Service) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Service) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Service) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Service) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Service) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Service) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Service) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Service) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Service) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Service) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Service) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Service) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Service) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Service) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Service) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Service) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Service) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Service) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Service) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Service) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Service) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Service) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Service) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Service) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Service) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Service) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Service) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Service) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Service) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Service) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Service) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Service) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Service) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Service) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Service) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Service) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Service) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Service) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Service) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Service) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Service) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Service) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Service) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Service) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Service) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Service) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Service) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Service) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Service) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Service) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Service) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Service) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Service) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Service) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Service) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Service) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Service) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Service) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Service) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Service) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Service) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Service) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Service) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Service) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Service) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Service) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Service) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Service) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Service) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Service) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Service) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Service) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Service) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Service) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Service) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Service) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Service) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Service) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Service) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Service) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Service) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Service) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Service) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Service) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Service) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Service) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Service) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Service) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Service) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Service) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Service) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Service) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Service) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Service) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Service) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Service) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Service) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Service) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Service) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Service) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Service) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Service) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Service) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Service) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Service) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Service) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Service) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Service) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Service) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Describes a relationship between two individuals. The subject and object properties are used to identify the connected individuals. See 5.2 Representing Relationships Between Entities for additional information. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Relationship struct { - // The raw type from the vocab package - raw *vocab.Relationship -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Relationship) Raw() (n *vocab.Relationship) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Relationship) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// ResolveSubject passes the actual concrete type to the resolver for handing property subject. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveSubject(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSubjectObject() { - handled, err = r.dispatch(t.raw.GetSubjectObject()) - if handled { - s = Resolved - } - } else if t.raw.IsSubjectLink() { - handled, err = r.dispatch(t.raw.GetSubjectLink()) - if handled { - s = Resolved - } - } else if t.raw.IsSubjectIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSubject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasSubject() (p Presence) { - p = NoPresence - if t.raw.IsSubjectObject() { - p = ConvenientPresence - } else if t.raw.IsSubjectLink() { - p = ConvenientPresence - } else if t.raw.IsSubjectIRI() { - p = RawPresence - } - return - -} - -// SetSubject sets this value to be an 'Object' type. -func (t *Relationship) SetSubject(i vocab.ObjectType) { - t.raw.SetSubjectObject(i) - -} - -// SetSubjectLink sets this value to be an 'Link' type. -func (t *Relationship) SetSubjectLink(i vocab.LinkType) { - t.raw.SetSubjectLink(i) - -} - -// LenObject returns the number of values this property contains. Each index be used with HasObject to determine if ResolveObject is safe to call or if raw handling would be needed.%!(EXTRA string=object) -func (t *Relationship) LenObject() (idx int) { - return t.raw.ObjectLen() - -} - -// ResolveObject passes the actual concrete type to the resolver for handing property object. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveObject(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsObject(idx) { - handled, err = r.dispatch(t.raw.GetObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsObjectIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendObject appends the value for property 'object'. -func (t *Relationship) AppendObject(i vocab.ObjectType) { - t.raw.AppendObject(i) - -} - -// PrependObject prepends the value for property 'object'. -func (t *Relationship) PrependObject(i vocab.ObjectType) { - t.raw.PrependObject(i) - -} - -// RemoveObject deletes the value from the specified index for property 'object'. -func (t *Relationship) RemoveObject(idx int) { - t.raw.RemoveObject(idx) - -} - -// HasObject returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasObject(idx int) (p Presence) { - p = NoPresence - if t.raw.IsObject(idx) { - p = ConvenientPresence - } else if t.raw.IsObjectIRI(idx) { - p = RawPresence - } - return - -} - -// ResolveRelationship passes the actual concrete type to the resolver for handing property relationship. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveRelationship(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsRelationship() { - handled, err = r.dispatch(t.raw.GetRelationship()) - if handled { - s = Resolved - } - } else if t.raw.IsRelationshipIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasRelationship returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasRelationship() (p Presence) { - p = NoPresence - if t.raw.IsRelationship() { - p = ConvenientPresence - } else if t.raw.IsRelationshipIRI() { - p = RawPresence - } - return - -} - -// SetRelationship sets this value to be a 'Object' type. -func (t *Relationship) SetRelationship(i vocab.ObjectType) { - t.raw.SetRelationship(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Relationship) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Relationship) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Relationship) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Relationship) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Relationship) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Relationship) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Relationship) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Relationship) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Relationship) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Relationship) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Relationship) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Relationship) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Relationship) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Relationship) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Relationship) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Relationship) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Relationship) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Relationship) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Relationship) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Relationship) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Relationship) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Relationship) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Relationship) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Relationship) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Relationship) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Relationship) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Relationship) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Relationship) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Relationship) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Relationship) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Relationship) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Relationship) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Relationship) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Relationship) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Relationship) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Relationship) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Relationship) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Relationship) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Relationship) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Relationship) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Relationship) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Relationship) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Relationship) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Relationship) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Relationship) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Relationship) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Relationship) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Relationship) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Relationship) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Relationship) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Relationship) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Relationship) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Relationship) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Relationship) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Relationship) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Relationship) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Relationship) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Relationship) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Relationship) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Relationship) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Relationship) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Relationship) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Relationship) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Relationship) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Relationship) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Relationship) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Relationship) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Relationship) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Relationship) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Relationship) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Relationship) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Relationship) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Relationship) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Relationship) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Relationship) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Relationship) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Relationship) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Relationship) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Relationship) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Relationship) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Relationship) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Relationship) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Relationship) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Relationship) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Relationship) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Relationship) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Relationship) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Relationship) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Relationship) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Relationship) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Relationship) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Relationship) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Relationship) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Relationship) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Relationship) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Relationship) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Relationship) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Relationship) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Relationship) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Relationship) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Relationship) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Relationship) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Relationship) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Relationship) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Relationship) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Relationship) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Relationship) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Relationship) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Relationship) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Relationship) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Relationship) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Relationship) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Relationship) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Relationship) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Relationship) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Relationship) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Relationship) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Relationship) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Relationship) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Relationship) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Relationship) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Relationship) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Relationship) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Relationship) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Relationship) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Relationship) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Relationship) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Relationship) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Represents any kind of multi-paragraph written work. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Article struct { - // The raw type from the vocab package - raw *vocab.Article -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Article) Raw() (n *vocab.Article) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Article) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Article) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Article) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Article) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Article) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Article) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Article) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Article) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Article) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Article) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Article) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Article) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Article) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Article) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Article) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Article) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Article) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Article) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Article) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Article) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Article) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Article) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Article) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Article) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Article) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Article) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Article) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Article) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Article) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Article) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Article) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Article) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Article) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Article) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Article) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Article) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Article) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Article) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Article) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Article) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Article) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Article) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Article) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Article) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Article) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Article) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Article) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Article) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Article) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Article) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Article) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Article) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Article) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Article) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Article) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Article) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Article) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Article) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Article) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Article) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Article) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Article) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Article) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Article) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Article) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Article) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Article) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Article) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Article) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Article) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Article) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Article) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Article) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Article) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Article) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Article) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Article) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Article) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Article) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Article) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Article) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Article) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Article) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Article) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Article) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Article) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Article) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Article) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Article) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Article) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Article) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Article) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Article) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Article) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Article) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Article) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Article) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Article) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Article) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Article) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Article) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Article) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Article) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Article) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Article) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Article) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Article) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Article) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Article) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Article) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Article) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Article) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Article) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Article) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Article) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Article) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Article) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Article) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Article) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Article) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Article) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Article) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Article) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Article) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Article) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Article) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Article) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Article) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Article) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Represents a document of any kind. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Document struct { - // The raw type from the vocab package - raw *vocab.Document -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Document) Raw() (n *vocab.Document) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Document) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Document) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Document) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Document) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Document) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Document) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Document) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Document) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Document) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Document) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Document) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Document) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Document) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Document) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Document) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Document) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Document) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Document) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Document) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Document) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Document) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Document) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Document) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Document) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Document) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Document) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Document) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Document) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Document) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Document) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Document) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Document) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Document) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Document) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Document) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Document) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Document) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Document) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Document) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Document) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Document) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Document) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Document) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Document) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Document) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Document) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Document) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Document) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Document) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Document) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Document) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Document) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Document) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Document) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Document) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Document) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Document) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Document) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Document) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Document) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Document) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Document) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Document) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Document) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Document) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Document) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Document) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Document) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Document) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Document) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Document) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Document) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Document) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Document) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Document) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Document) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Document) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Document) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Document) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Document) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Document) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Document) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Document) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Document) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Document) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Document) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Document) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Document) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Document) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Document) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Document) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Document) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Document) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Document) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Document) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Document) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Document) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Document) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Document) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Document) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Document) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Document) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Document) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Document) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Document) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Document) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Document) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Document) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Document) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Document) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Document) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Document) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Document) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Document) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Document) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Document) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Document) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Document) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Document) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Document) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Document) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Document) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Document) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Document) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Document) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Document) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Document) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Document) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Document) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Represents an audio document of any kind. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Audio struct { - // The raw type from the vocab package - raw *vocab.Audio -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Audio) Raw() (n *vocab.Audio) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Audio) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Audio) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Audio) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Audio) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Audio) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Audio) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Audio) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Audio) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Audio) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Audio) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Audio) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Audio) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Audio) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Audio) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Audio) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Audio) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Audio) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Audio) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Audio) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Audio) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Audio) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Audio) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Audio) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Audio) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Audio) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Audio) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Audio) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Audio) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Audio) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Audio) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Audio) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Audio) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Audio) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Audio) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Audio) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Audio) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Audio) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Audio) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Audio) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Audio) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Audio) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Audio) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Audio) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Audio) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Audio) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Audio) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Audio) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Audio) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Audio) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Audio) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Audio) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Audio) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Audio) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Audio) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Audio) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Audio) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Audio) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Audio) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Audio) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Audio) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Audio) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Audio) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Audio) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Audio) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Audio) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Audio) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Audio) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Audio) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Audio) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Audio) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Audio) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Audio) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Audio) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Audio) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Audio) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Audio) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Audio) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Audio) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Audio) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Audio) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Audio) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Audio) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Audio) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Audio) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Audio) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Audio) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Audio) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Audio) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Audio) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Audio) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Audio) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Audio) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Audio) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Audio) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Audio) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Audio) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Audio) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Audio) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Audio) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Audio) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Audio) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Audio) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Audio) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Audio) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Audio) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Audio) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Audio) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Audio) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Audio) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Audio) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Audio) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Audio) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Audio) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Audio) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Audio) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Audio) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Audio) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Audio) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Audio) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Audio) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Audio) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Audio) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Audio) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Audio) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Audio) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Audio) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Audio) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Audio) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Audio) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// An image document of any kind This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Image struct { - // The raw type from the vocab package - raw *vocab.Image -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Image) Raw() (n *vocab.Image) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Image) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// GetHeight attempts to get this 'height' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetHeight() (r Resolution, k int64) { - r = Unresolved - handled := false - if t.raw.IsHeight() { - k = t.raw.GetHeight() - if handled { - r = Resolved - } - } else if t.raw.IsHeightIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasHeight returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasHeight() (p Presence) { - p = NoPresence - if t.raw.IsHeight() { - p = ConvenientPresence - } else if t.raw.IsHeightIRI() { - p = RawPresence - } - return - -} - -// SetHeight sets the value for property 'height'. -func (t *Image) SetHeight(k int64) { - t.raw.SetHeight(k) - -} - -// GetWidth attempts to get this 'width' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetWidth() (r Resolution, k int64) { - r = Unresolved - handled := false - if t.raw.IsWidth() { - k = t.raw.GetWidth() - if handled { - r = Resolved - } - } else if t.raw.IsWidthIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasWidth returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasWidth() (p Presence) { - p = NoPresence - if t.raw.IsWidth() { - p = ConvenientPresence - } else if t.raw.IsWidthIRI() { - p = RawPresence - } - return - -} - -// SetWidth sets the value for property 'width'. -func (t *Image) SetWidth(k int64) { - t.raw.SetWidth(k) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Image) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Image) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Image) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Image) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Image) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Image) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Image) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Image) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Image) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Image) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Image) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Image) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Image) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Image) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Image) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Image) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Image) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Image) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Image) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Image) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Image) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Image) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Image) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Image) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Image) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Image) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Image) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Image) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Image) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Image) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Image) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Image) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Image) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Image) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Image) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Image) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Image) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Image) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Image) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Image) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Image) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Image) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Image) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Image) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Image) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Image) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Image) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Image) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Image) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Image) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Image) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Image) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Image) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Image) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Image) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Image) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Image) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Image) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Image) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Image) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Image) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Image) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Image) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Image) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Image) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Image) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Image) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Image) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Image) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Image) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Image) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Image) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Image) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Image) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Image) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Image) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Image) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Image) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Image) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Image) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Image) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Image) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Image) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Image) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Image) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Image) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Image) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Image) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Image) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Image) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Image) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Image) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Image) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Image) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Image) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Image) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Image) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Image) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Image) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Image) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Image) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Image) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Image) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Image) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Image) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Image) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Image) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Image) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Image) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Image) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Image) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Image) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Image) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Image) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Image) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Image) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Image) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Image) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Image) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Image) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Image) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Image) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Image) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Image) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Image) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Image) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Image) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Image) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Represents a video document of any kind. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Video struct { - // The raw type from the vocab package - raw *vocab.Video -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Video) Raw() (n *vocab.Video) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Video) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Video) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Video) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Video) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Video) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Video) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Video) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Video) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Video) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Video) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Video) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Video) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Video) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Video) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Video) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Video) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Video) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Video) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Video) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Video) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Video) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Video) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Video) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Video) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Video) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Video) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Video) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Video) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Video) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Video) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Video) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Video) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Video) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Video) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Video) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Video) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Video) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Video) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Video) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Video) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Video) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Video) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Video) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Video) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Video) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Video) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Video) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Video) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Video) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Video) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Video) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Video) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Video) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Video) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Video) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Video) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Video) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Video) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Video) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Video) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Video) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Video) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Video) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Video) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Video) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Video) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Video) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Video) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Video) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Video) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Video) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Video) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Video) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Video) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Video) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Video) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Video) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Video) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Video) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Video) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Video) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Video) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Video) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Video) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Video) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Video) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Video) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Video) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Video) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Video) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Video) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Video) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Video) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Video) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Video) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Video) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Video) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Video) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Video) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Video) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Video) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Video) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Video) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Video) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Video) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Video) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Video) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Video) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Video) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Video) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Video) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Video) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Video) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Video) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Video) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Video) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Video) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Video) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Video) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Video) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Video) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Video) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Video) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Video) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Video) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Video) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Video) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Video) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Video) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Represents a short written work typically less than a single paragraph in length. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Note struct { - // The raw type from the vocab package - raw *vocab.Note -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Note) Raw() (n *vocab.Note) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Note) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Note) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Note) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Note) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Note) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Note) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Note) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Note) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Note) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Note) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Note) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Note) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Note) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Note) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Note) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Note) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Note) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Note) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Note) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Note) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Note) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Note) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Note) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Note) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Note) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Note) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Note) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Note) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Note) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Note) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Note) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Note) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Note) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Note) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Note) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Note) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Note) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Note) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Note) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Note) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Note) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Note) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Note) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Note) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Note) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Note) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Note) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Note) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Note) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Note) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Note) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Note) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Note) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Note) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Note) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Note) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Note) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Note) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Note) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Note) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Note) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Note) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Note) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Note) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Note) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Note) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Note) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Note) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Note) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Note) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Note) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Note) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Note) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Note) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Note) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Note) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Note) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Note) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Note) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Note) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Note) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Note) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Note) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Note) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Note) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Note) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Note) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Note) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Note) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Note) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Note) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Note) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Note) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Note) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Note) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Note) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Note) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Note) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Note) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Note) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Note) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Note) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Note) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Note) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Note) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Note) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Note) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Note) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Note) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Note) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Note) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Note) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Note) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Note) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Note) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Note) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Note) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Note) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Note) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Note) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Note) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Note) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Note) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Note) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Note) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Note) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Note) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Note) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Note) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Represents a Web Page. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Page struct { - // The raw type from the vocab package - raw *vocab.Page -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Page) Raw() (n *vocab.Page) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Page) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Page) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Page) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Page) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Page) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Page) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Page) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Page) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Page) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Page) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Page) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Page) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Page) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Page) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Page) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Page) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Page) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Page) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Page) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Page) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Page) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Page) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Page) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Page) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Page) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Page) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Page) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Page) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Page) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Page) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Page) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Page) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Page) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Page) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Page) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Page) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Page) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Page) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Page) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Page) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Page) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Page) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Page) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Page) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Page) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Page) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Page) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Page) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Page) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Page) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Page) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Page) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Page) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Page) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Page) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Page) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Page) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Page) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Page) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Page) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Page) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Page) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Page) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Page) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Page) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Page) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Page) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Page) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Page) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Page) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Page) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Page) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Page) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Page) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Page) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Page) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Page) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Page) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Page) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Page) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Page) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Page) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Page) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Page) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Page) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Page) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Page) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Page) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Page) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Page) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Page) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Page) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Page) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Page) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Page) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Page) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Page) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Page) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Page) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Page) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Page) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Page) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Page) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Page) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Page) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Page) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Page) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Page) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Page) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Page) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Page) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Page) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Page) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Page) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Page) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Page) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Page) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Page) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Page) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Page) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Page) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Page) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Page) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Page) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Page) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Page) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Page) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Page) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Page) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Represents any kind of event. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Event struct { - // The raw type from the vocab package - raw *vocab.Event -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Event) Raw() (n *vocab.Event) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Event) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Event) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Event) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Event) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Event) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Event) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Event) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Event) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Event) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Event) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Event) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Event) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Event) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Event) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Event) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Event) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Event) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Event) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Event) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Event) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Event) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Event) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Event) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Event) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Event) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Event) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Event) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Event) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Event) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Event) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Event) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Event) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Event) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Event) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Event) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Event) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Event) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Event) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Event) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Event) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Event) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Event) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Event) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Event) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Event) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Event) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Event) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Event) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Event) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Event) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Event) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Event) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Event) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Event) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Event) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Event) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Event) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Event) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Event) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Event) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Event) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Event) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Event) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Event) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Event) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Event) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Event) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Event) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Event) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Event) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Event) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Event) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Event) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Event) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Event) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Event) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Event) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Event) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Event) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Event) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Event) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Event) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Event) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Event) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Event) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Event) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Event) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Event) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Event) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Event) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Event) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Event) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Event) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Event) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Event) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Event) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Event) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Event) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Event) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Event) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Event) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Event) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Event) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Event) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Event) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Event) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Event) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Event) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Event) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Event) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Event) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Event) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Event) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Event) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Event) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Event) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Event) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Event) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Event) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Event) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Event) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Event) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Event) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Event) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Event) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Event) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Event) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Event) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Event) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// Represents a logical or physical location. See 5.3 Representing Places for additional information. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Place struct { - // The raw type from the vocab package - raw *vocab.Place -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Place) Raw() (n *vocab.Place) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Place) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// GetAccuracy attempts to get this 'accuracy' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetAccuracy() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAccuracy() { - k = t.raw.GetAccuracy() - if handled { - r = Resolved - } - } else if t.raw.IsAccuracyIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAccuracy returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasAccuracy() (p Presence) { - p = NoPresence - if t.raw.IsAccuracy() { - p = ConvenientPresence - } else if t.raw.IsAccuracyIRI() { - p = RawPresence - } - return - -} - -// SetAccuracy sets the value for property 'accuracy'. -func (t *Place) SetAccuracy(k float64) { - t.raw.SetAccuracy(k) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Place) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// GetLatitude attempts to get this 'latitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetLatitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsLatitude() { - k = t.raw.GetLatitude() - if handled { - r = Resolved - } - } else if t.raw.IsLatitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasLatitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasLatitude() (p Presence) { - p = NoPresence - if t.raw.IsLatitude() { - p = ConvenientPresence - } else if t.raw.IsLatitudeIRI() { - p = RawPresence - } - return - -} - -// SetLatitude sets the value for property 'latitude'. -func (t *Place) SetLatitude(k float64) { - t.raw.SetLatitude(k) - -} - -// GetLongitude attempts to get this 'longitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetLongitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsLongitude() { - k = t.raw.GetLongitude() - if handled { - r = Resolved - } - } else if t.raw.IsLongitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasLongitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasLongitude() (p Presence) { - p = NoPresence - if t.raw.IsLongitude() { - p = ConvenientPresence - } else if t.raw.IsLongitudeIRI() { - p = RawPresence - } - return - -} - -// SetLongitude sets the value for property 'longitude'. -func (t *Place) SetLongitude(k float64) { - t.raw.SetLongitude(k) - -} - -// GetRadius attempts to get this 'radius' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetRadius() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsRadius() { - k = t.raw.GetRadius() - if handled { - r = Resolved - } - } else if t.raw.IsRadiusIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasRadius returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasRadius() (p Presence) { - p = NoPresence - if t.raw.IsRadius() { - p = ConvenientPresence - } else if t.raw.IsRadiusIRI() { - p = RawPresence - } - return - -} - -// SetRadius sets the value for property 'radius'. -func (t *Place) SetRadius(k float64) { - t.raw.SetRadius(k) - -} - -// GetUnits attempts to get this 'units' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetUnits() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsUnitsUnitsValue() { - k = t.raw.GetUnitsUnitsValue() - if handled { - r = Resolved - } - } else if t.raw.IsUnitsAnyURI() { - r = RawResolutionNeeded - } - return - -} - -// HasUnits returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasUnits() (p Presence) { - p = NoPresence - if t.raw.IsUnitsUnitsValue() { - p = ConvenientPresence - } else if t.raw.IsUnitsAnyURI() { - p = RawPresence - } - return - -} - -// SetUnits sets the value for property 'units'. -func (t *Place) SetUnits(k string) { - t.raw.SetUnitsUnitsValue(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Place) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Place) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Place) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Place) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Place) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Place) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Place) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Place) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Place) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Place) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Place) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Place) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Place) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Place) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Place) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Place) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Place) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Place) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Place) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Place) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Place) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Place) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Place) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Place) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Place) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Place) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Place) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Place) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Place) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Place) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Place) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Place) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Place) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Place) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Place) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Place) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Place) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Place) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Place) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Place) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Place) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Place) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Place) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Place) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Place) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Place) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Place) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Place) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Place) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Place) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Place) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Place) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Place) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Place) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Place) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Place) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Place) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Place) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Place) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Place) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Place) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Place) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Place) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Place) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Place) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Place) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Place) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Place) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Place) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Place) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Place) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Place) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Place) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Place) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Place) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Place) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Place) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Place) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Place) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Place) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Place) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Place) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Place) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Place) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Place) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Place) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Place) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Place) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Place) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Place) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Place) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Place) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Place) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Place) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Place) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Place) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Place) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Place) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Place) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Place) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Place) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Place) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Place) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Place) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Place) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Place) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Place) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Place) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Place) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Place) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Place) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Place) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Place) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Place) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Place) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Place) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Place) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Place) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Place) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Place) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Place) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Place) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Place) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Place) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Place) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Place) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Place) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// A Profile is a content object that describes another Object, typically used to describe Actor Type objects. The describes property is used to reference the object being described by the profile. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Profile struct { - // The raw type from the vocab package - raw *vocab.Profile -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Profile) Raw() (n *vocab.Profile) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Profile) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// ResolveDescribes passes the actual concrete type to the resolver for handing property describes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolveDescribes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsDescribes() { - handled, err = r.dispatch(t.raw.GetDescribes()) - if handled { - s = Resolved - } - } else if t.raw.IsDescribesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasDescribes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasDescribes() (p Presence) { - p = NoPresence - if t.raw.IsDescribes() { - p = ConvenientPresence - } else if t.raw.IsDescribesIRI() { - p = RawPresence - } - return - -} - -// SetDescribes sets this value to be a 'Object' type. -func (t *Profile) SetDescribes(i vocab.ObjectType) { - t.raw.SetDescribes(i) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Profile) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Profile) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Profile) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Profile) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Profile) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Profile) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Profile) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Profile) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Profile) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Profile) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Profile) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Profile) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Profile) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Profile) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Profile) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Profile) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Profile) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Profile) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Profile) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Profile) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Profile) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Profile) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Profile) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Profile) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Profile) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Profile) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Profile) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Profile) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Profile) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Profile) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Profile) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Profile) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Profile) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Profile) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Profile) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Profile) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Profile) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Profile) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Profile) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Profile) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Profile) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Profile) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Profile) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Profile) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Profile) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Profile) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Profile) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Profile) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Profile) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Profile) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Profile) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Profile) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Profile) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Profile) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Profile) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Profile) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Profile) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Profile) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Profile) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Profile) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Profile) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Profile) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Profile) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Profile) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Profile) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Profile) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Profile) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Profile) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Profile) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Profile) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Profile) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Profile) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Profile) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Profile) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Profile) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Profile) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Profile) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Profile) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Profile) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Profile) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Profile) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Profile) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Profile) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Profile) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Profile) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Profile) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Profile) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Profile) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Profile) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Profile) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Profile) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Profile) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Profile) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Profile) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Profile) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Profile) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Profile) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Profile) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Profile) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Profile) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Profile) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Profile) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Profile) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Profile) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Profile) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Profile) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Profile) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Profile) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Profile) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Profile) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Profile) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Profile) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Profile) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Profile) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Profile) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Profile) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Profile) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Profile) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Profile) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Profile) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Profile) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Profile) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Profile) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Profile) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Profile) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Profile) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Profile) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Profile) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// A Tombstone represents a content object that has been deleted. It can be used in Collections to signify that there used to be an object at this position, but it has been deleted. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Tombstone struct { - // The raw type from the vocab package - raw *vocab.Tombstone -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Tombstone) Raw() (n *vocab.Tombstone) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Tombstone) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenFormerType returns the number of values this property contains. Each index be used with HasFormerType to determine if GetFormerType is safe to call or if raw handling would be needed.%!(EXTRA string=formerType) -func (t *Tombstone) LenFormerType() (idx int) { - return t.raw.FormerTypeLen() - -} - -// GetFormerType attempts to get this 'formerType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetFormerType(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsFormerTypeString(idx) { - k = t.raw.GetFormerTypeString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsFormerTypeObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsFormerTypeIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendFormerType appends the value for property 'formerType'. -func (t *Tombstone) AppendFormerType(k string) { - t.raw.AppendFormerTypeString(k) - -} - -// PrependFormerType prepends the value for property 'formerType'. -func (t *Tombstone) PrependFormerType(k string) { - t.raw.PrependFormerTypeString(k) - -} - -// RemoveFormerType deletes the value from the specified index for property 'formerType'. -func (t *Tombstone) RemoveFormerType(idx int) { - t.raw.RemoveFormerTypeString(idx) - -} - -// HasFormerType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasFormerType(idx int) (p Presence) { - p = NoPresence - if t.raw.IsFormerTypeString(idx) { - p = ConvenientPresence - } else if t.raw.IsFormerTypeObject(idx) { - p = RawPresence - } else if t.raw.IsFormerTypeIRI(idx) { - p = RawPresence - } - return - -} - -// GetDeleted attempts to get this 'deleted' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetDeleted() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsDeleted() { - k = t.raw.GetDeleted() - if handled { - r = Resolved - } - } else if t.raw.IsDeletedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDeleted returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasDeleted() (p Presence) { - p = NoPresence - if t.raw.IsDeleted() { - p = ConvenientPresence - } else if t.raw.IsDeletedIRI() { - p = RawPresence - } - return - -} - -// SetDeleted sets the value for property 'deleted'. -func (t *Tombstone) SetDeleted(k time.Time) { - t.raw.SetDeleted(k) - -} - -// GetAltitude attempts to get this 'altitude' property as a float64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetAltitude() (r Resolution, k float64) { - r = Unresolved - handled := false - if t.raw.IsAltitude() { - k = t.raw.GetAltitude() - if handled { - r = Resolved - } - } else if t.raw.IsAltitudeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasAltitude returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasAltitude() (p Presence) { - p = NoPresence - if t.raw.IsAltitude() { - p = ConvenientPresence - } else if t.raw.IsAltitudeIRI() { - p = RawPresence - } - return - -} - -// SetAltitude sets the value for property 'altitude'. -func (t *Tombstone) SetAltitude(k float64) { - t.raw.SetAltitude(k) - -} - -// LenAttachment returns the number of values this property contains. Each index be used with HasAttachment to determine if ResolveAttachment is safe to call or if raw handling would be needed.%!(EXTRA string=attachment) -func (t *Tombstone) LenAttachment() (idx int) { - return t.raw.AttachmentLen() - -} - -// ResolveAttachment passes the actual concrete type to the resolver for handing property attachment. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) ResolveAttachment(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsAttachmentObject(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentLink(idx) { - handled, err = r.dispatch(t.raw.GetAttachmentLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsAttachmentIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasAttachment returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasAttachment(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttachmentObject(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentLink(idx) { - p = ConvenientPresence - } else if t.raw.IsAttachmentIRI(idx) { - p = RawPresence - } - return - -} - -// AppendAttachment appends an 'Object' typed value. -func (t *Tombstone) AppendAttachment(i vocab.ObjectType) { - t.raw.AppendAttachmentObject(i) - -} - -// PrependAttachment prepends an 'Object' typed value. -func (t *Tombstone) PrependAttachment(i vocab.ObjectType) { - t.raw.PrependAttachmentObject(i) - -} - -// AppendAttachmentLink appends a 'Link' typed value. -func (t *Tombstone) AppendAttachmentLink(i vocab.LinkType) { - t.raw.AppendAttachmentLink(i) - -} - -// PrependAttachmentLink prepends a 'Link' typed value. -func (t *Tombstone) PrependAttachmentLink(i vocab.LinkType) { - t.raw.PrependAttachmentLink(i) - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Tombstone) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Tombstone) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Tombstone) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Tombstone) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// LenAudience returns the number of values this property contains. Each index be used with HasAudience to determine if GetAudience is safe to call or if raw handling would be needed.%!(EXTRA string=audience) -func (t *Tombstone) LenAudience() (idx int) { - return t.raw.AudienceLen() - -} - -// GetAudience attempts to get this 'audience' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetAudience(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAudienceIRI(idx) { - k = t.raw.GetAudienceIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAudienceObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAudienceLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAudience appends the value for property 'audience'. -func (t *Tombstone) AppendAudience(k *url.URL) { - t.raw.AppendAudienceIRI(k) - -} - -// PrependAudience prepends the value for property 'audience'. -func (t *Tombstone) PrependAudience(k *url.URL) { - t.raw.PrependAudienceIRI(k) - -} - -// RemoveAudience deletes the value from the specified index for property 'audience'. -func (t *Tombstone) RemoveAudience(idx int) { - t.raw.RemoveAudienceIRI(idx) - -} - -// HasAudience returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasAudience(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAudienceIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAudienceLink(idx) { - p = RawPresence - } else if t.raw.IsAudienceIRI(idx) { - p = RawPresence - } - return - -} - -// LenContent returns the number of values this property contains. Each index be used with HasContent to determine if GetContent is safe to call or if raw handling would be needed.%!(EXTRA string=content) -func (t *Tombstone) LenContent() (idx int) { - return t.raw.ContentLen() - -} - -// GetContent attempts to get this 'content' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetContent(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsContentString(idx) { - k = t.raw.GetContentString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsContentLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsContentIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendContent appends the value for property 'content'. -func (t *Tombstone) AppendContent(k string) { - t.raw.AppendContentString(k) - -} - -// PrependContent prepends the value for property 'content'. -func (t *Tombstone) PrependContent(k string) { - t.raw.PrependContentString(k) - -} - -// RemoveContent deletes the value from the specified index for property 'content'. -func (t *Tombstone) RemoveContent(idx int) { - t.raw.RemoveContentString(idx) - -} - -// HasContent returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasContent(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContentString(idx) { - p = ConvenientPresence - } else if t.raw.IsContentLangString(idx) { - p = RawPresence - } else if t.raw.IsContentIRI(idx) { - p = RawPresence - } - return - -} - -// ContentLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Tombstone) ContentLanguages() (l []string) { - return t.raw.ContentMapLanguages() - -} - -// GetContentMap retrieves the value of 'content' for the specified language, or an empty string if it does not exist -func (t *Tombstone) GetContentForLanguage(l string) (v string) { - return t.raw.GetContentMap(l) - -} - -// SetContentForLanguage sets the value of 'content' for the specified language -func (t *Tombstone) SetContentForLanguage(l string, v string) { - t.raw.SetContentMap(l, v) - -} - -// LenContext returns the number of values this property contains. Each index be used with HasContext to determine if ResolveContext is safe to call or if raw handling would be needed.%!(EXTRA string=context) -func (t *Tombstone) LenContext() (idx int) { - return t.raw.ContextLen() - -} - -// ResolveContext passes the actual concrete type to the resolver for handing property context. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) ResolveContext(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsContextObject(idx) { - handled, err = r.dispatch(t.raw.GetContextObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextLink(idx) { - handled, err = r.dispatch(t.raw.GetContextLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsContextIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasContext returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasContext(idx int) (p Presence) { - p = NoPresence - if t.raw.IsContextObject(idx) { - p = ConvenientPresence - } else if t.raw.IsContextLink(idx) { - p = ConvenientPresence - } else if t.raw.IsContextIRI(idx) { - p = RawPresence - } - return - -} - -// AppendContext appends an 'Object' typed value. -func (t *Tombstone) AppendContext(i vocab.ObjectType) { - t.raw.AppendContextObject(i) - -} - -// PrependContext prepends an 'Object' typed value. -func (t *Tombstone) PrependContext(i vocab.ObjectType) { - t.raw.PrependContextObject(i) - -} - -// AppendContextLink appends a 'Link' typed value. -func (t *Tombstone) AppendContextLink(i vocab.LinkType) { - t.raw.AppendContextLink(i) - -} - -// PrependContextLink prepends a 'Link' typed value. -func (t *Tombstone) PrependContextLink(i vocab.LinkType) { - t.raw.PrependContextLink(i) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Tombstone) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Tombstone) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Tombstone) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Tombstone) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Tombstone) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Tombstone) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Tombstone) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// GetEndTime attempts to get this 'endTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetEndTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsEndTime() { - k = t.raw.GetEndTime() - if handled { - r = Resolved - } - } else if t.raw.IsEndTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasEndTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasEndTime() (p Presence) { - p = NoPresence - if t.raw.IsEndTime() { - p = ConvenientPresence - } else if t.raw.IsEndTimeIRI() { - p = RawPresence - } - return - -} - -// SetEndTime sets the value for property 'endTime'. -func (t *Tombstone) SetEndTime(k time.Time) { - t.raw.SetEndTime(k) - -} - -// LenGenerator returns the number of values this property contains. Each index be used with HasGenerator to determine if ResolveGenerator is safe to call or if raw handling would be needed.%!(EXTRA string=generator) -func (t *Tombstone) LenGenerator() (idx int) { - return t.raw.GeneratorLen() - -} - -// ResolveGenerator passes the actual concrete type to the resolver for handing property generator. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) ResolveGenerator(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsGeneratorObject(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorLink(idx) { - handled, err = r.dispatch(t.raw.GetGeneratorLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsGeneratorIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasGenerator returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasGenerator(idx int) (p Presence) { - p = NoPresence - if t.raw.IsGeneratorObject(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorLink(idx) { - p = ConvenientPresence - } else if t.raw.IsGeneratorIRI(idx) { - p = RawPresence - } - return - -} - -// AppendGenerator appends an 'Object' typed value. -func (t *Tombstone) AppendGenerator(i vocab.ObjectType) { - t.raw.AppendGeneratorObject(i) - -} - -// PrependGenerator prepends an 'Object' typed value. -func (t *Tombstone) PrependGenerator(i vocab.ObjectType) { - t.raw.PrependGeneratorObject(i) - -} - -// AppendGeneratorLink appends a 'Link' typed value. -func (t *Tombstone) AppendGeneratorLink(i vocab.LinkType) { - t.raw.AppendGeneratorLink(i) - -} - -// PrependGeneratorLink prepends a 'Link' typed value. -func (t *Tombstone) PrependGeneratorLink(i vocab.LinkType) { - t.raw.PrependGeneratorLink(i) - -} - -// LenIcon returns the number of values this property contains. Each index be used with HasIcon to determine if ResolveIcon is safe to call or if raw handling would be needed.%!(EXTRA string=icon) -func (t *Tombstone) LenIcon() (idx int) { - return t.raw.IconLen() - -} - -// ResolveIcon passes the actual concrete type to the resolver for handing property icon. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) ResolveIcon(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsIconImage(idx) { - handled, err = r.dispatch(t.raw.GetIconImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsIconLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsIconIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendIcon appends the value for property 'icon'. -func (t *Tombstone) AppendIcon(i vocab.ImageType) { - t.raw.AppendIconImage(i) - -} - -// PrependIcon prepends the value for property 'icon'. -func (t *Tombstone) PrependIcon(i vocab.ImageType) { - t.raw.PrependIconImage(i) - -} - -// RemoveIcon deletes the value from the specified index for property 'icon'. -func (t *Tombstone) RemoveIcon(idx int) { - t.raw.RemoveIconImage(idx) - -} - -// HasIcon returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasIcon(idx int) (p Presence) { - p = NoPresence - if t.raw.IsIconImage(idx) { - p = ConvenientPresence - } else if t.raw.IsIconLink(idx) { - p = RawPresence - } else if t.raw.IsIconIRI(idx) { - p = RawPresence - } - return - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Tombstone) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenImage returns the number of values this property contains. Each index be used with HasImage to determine if ResolveImage is safe to call or if raw handling would be needed.%!(EXTRA string=image) -func (t *Tombstone) LenImage() (idx int) { - return t.raw.ImageLen() - -} - -// ResolveImage passes the actual concrete type to the resolver for handing property image. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) ResolveImage(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsImageImage(idx) { - handled, err = r.dispatch(t.raw.GetImageImage(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsImageLink(idx) { - s = RawResolutionNeeded - } else if t.raw.IsImageIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// AppendImage appends the value for property 'image'. -func (t *Tombstone) AppendImage(i vocab.ImageType) { - t.raw.AppendImageImage(i) - -} - -// PrependImage prepends the value for property 'image'. -func (t *Tombstone) PrependImage(i vocab.ImageType) { - t.raw.PrependImageImage(i) - -} - -// RemoveImage deletes the value from the specified index for property 'image'. -func (t *Tombstone) RemoveImage(idx int) { - t.raw.RemoveImageImage(idx) - -} - -// HasImage returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasImage(idx int) (p Presence) { - p = NoPresence - if t.raw.IsImageImage(idx) { - p = ConvenientPresence - } else if t.raw.IsImageLink(idx) { - p = RawPresence - } else if t.raw.IsImageIRI(idx) { - p = RawPresence - } - return - -} - -// LenInReplyTo returns the number of values this property contains. Each index be used with HasInReplyTo to determine if GetInReplyTo is safe to call or if raw handling would be needed.%!(EXTRA string=inReplyTo) -func (t *Tombstone) LenInReplyTo() (idx int) { - return t.raw.InReplyToLen() - -} - -// GetInReplyTo attempts to get this 'inReplyTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetInReplyTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsInReplyToIRI(idx) { - k = t.raw.GetInReplyToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsInReplyToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsInReplyToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendInReplyTo appends the value for property 'inReplyTo'. -func (t *Tombstone) AppendInReplyTo(k *url.URL) { - t.raw.AppendInReplyToIRI(k) - -} - -// PrependInReplyTo prepends the value for property 'inReplyTo'. -func (t *Tombstone) PrependInReplyTo(k *url.URL) { - t.raw.PrependInReplyToIRI(k) - -} - -// RemoveInReplyTo deletes the value from the specified index for property 'inReplyTo'. -func (t *Tombstone) RemoveInReplyTo(idx int) { - t.raw.RemoveInReplyToIRI(idx) - -} - -// HasInReplyTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasInReplyTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsInReplyToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsInReplyToLink(idx) { - p = RawPresence - } else if t.raw.IsInReplyToIRI(idx) { - p = RawPresence - } - return - -} - -// LenLocation returns the number of values this property contains. Each index be used with HasLocation to determine if ResolveLocation is safe to call or if raw handling would be needed.%!(EXTRA string=location) -func (t *Tombstone) LenLocation() (idx int) { - return t.raw.LocationLen() - -} - -// ResolveLocation passes the actual concrete type to the resolver for handing property location. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) ResolveLocation(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLocationObject(idx) { - handled, err = r.dispatch(t.raw.GetLocationObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationLink(idx) { - handled, err = r.dispatch(t.raw.GetLocationLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsLocationIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasLocation returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasLocation(idx int) (p Presence) { - p = NoPresence - if t.raw.IsLocationObject(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationLink(idx) { - p = ConvenientPresence - } else if t.raw.IsLocationIRI(idx) { - p = RawPresence - } - return - -} - -// AppendLocation appends an 'Object' typed value. -func (t *Tombstone) AppendLocation(i vocab.ObjectType) { - t.raw.AppendLocationObject(i) - -} - -// PrependLocation prepends an 'Object' typed value. -func (t *Tombstone) PrependLocation(i vocab.ObjectType) { - t.raw.PrependLocationObject(i) - -} - -// AppendLocationLink appends a 'Link' typed value. -func (t *Tombstone) AppendLocationLink(i vocab.LinkType) { - t.raw.AppendLocationLink(i) - -} - -// PrependLocationLink prepends a 'Link' typed value. -func (t *Tombstone) PrependLocationLink(i vocab.LinkType) { - t.raw.PrependLocationLink(i) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Tombstone) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Tombstone) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Tombstone) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Tombstone) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Tombstone) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} - -// GetPublished attempts to get this 'published' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetPublished() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsPublished() { - k = t.raw.GetPublished() - if handled { - r = Resolved - } - } else if t.raw.IsPublishedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPublished returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasPublished() (p Presence) { - p = NoPresence - if t.raw.IsPublished() { - p = ConvenientPresence - } else if t.raw.IsPublishedIRI() { - p = RawPresence - } - return - -} - -// SetPublished sets the value for property 'published'. -func (t *Tombstone) SetPublished(k time.Time) { - t.raw.SetPublished(k) - -} - -// ResolveReplies passes the actual concrete type to the resolver for handing property replies. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) ResolveReplies(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsReplies() { - handled, err = r.dispatch(t.raw.GetReplies()) - if handled { - s = Resolved - } - } else if t.raw.IsRepliesIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasReplies returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasReplies() (p Presence) { - p = NoPresence - if t.raw.IsReplies() { - p = ConvenientPresence - } else if t.raw.IsRepliesIRI() { - p = RawPresence - } - return - -} - -// SetReplies sets this value to be a 'Collection' type. -func (t *Tombstone) SetReplies(i vocab.CollectionType) { - t.raw.SetReplies(i) - -} - -// GetStartTime attempts to get this 'startTime' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetStartTime() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsStartTime() { - k = t.raw.GetStartTime() - if handled { - r = Resolved - } - } else if t.raw.IsStartTimeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasStartTime returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasStartTime() (p Presence) { - p = NoPresence - if t.raw.IsStartTime() { - p = ConvenientPresence - } else if t.raw.IsStartTimeIRI() { - p = RawPresence - } - return - -} - -// SetStartTime sets the value for property 'startTime'. -func (t *Tombstone) SetStartTime(k time.Time) { - t.raw.SetStartTime(k) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Tombstone) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Tombstone) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Tombstone) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Tombstone) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Tombstone) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Tombstone) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Tombstone) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// LenTag returns the number of values this property contains. Each index be used with HasTag to determine if ResolveTag is safe to call or if raw handling would be needed.%!(EXTRA string=tag) -func (t *Tombstone) LenTag() (idx int) { - return t.raw.TagLen() - -} - -// ResolveTag passes the actual concrete type to the resolver for handing property tag. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) ResolveTag(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsTagObject(idx) { - handled, err = r.dispatch(t.raw.GetTagObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagLink(idx) { - handled, err = r.dispatch(t.raw.GetTagLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsTagIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasTag returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasTag(idx int) (p Presence) { - p = NoPresence - if t.raw.IsTagObject(idx) { - p = ConvenientPresence - } else if t.raw.IsTagLink(idx) { - p = ConvenientPresence - } else if t.raw.IsTagIRI(idx) { - p = RawPresence - } - return - -} - -// AppendTag appends an 'Object' typed value. -func (t *Tombstone) AppendTag(i vocab.ObjectType) { - t.raw.AppendTagObject(i) - -} - -// PrependTag prepends an 'Object' typed value. -func (t *Tombstone) PrependTag(i vocab.ObjectType) { - t.raw.PrependTagObject(i) - -} - -// AppendTagLink appends a 'Link' typed value. -func (t *Tombstone) AppendTagLink(i vocab.LinkType) { - t.raw.AppendTagLink(i) - -} - -// PrependTagLink prepends a 'Link' typed value. -func (t *Tombstone) PrependTagLink(i vocab.LinkType) { - t.raw.PrependTagLink(i) - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Tombstone) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Tombstone) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Tombstone) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Tombstone) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetUpdated attempts to get this 'updated' property as a time.Time. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetUpdated() (r Resolution, k time.Time) { - r = Unresolved - handled := false - if t.raw.IsUpdated() { - k = t.raw.GetUpdated() - if handled { - r = Resolved - } - } else if t.raw.IsUpdatedIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasUpdated returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasUpdated() (p Presence) { - p = NoPresence - if t.raw.IsUpdated() { - p = ConvenientPresence - } else if t.raw.IsUpdatedIRI() { - p = RawPresence - } - return - -} - -// SetUpdated sets the value for property 'updated'. -func (t *Tombstone) SetUpdated(k time.Time) { - t.raw.SetUpdated(k) - -} - -// LenUrl returns the number of values this property contains. Each index be used with HasUrl to determine if GetUrl is safe to call or if raw handling would be needed.%!(EXTRA string=url) -func (t *Tombstone) LenUrl() (idx int) { - return t.raw.UrlLen() - -} - -// GetUrl attempts to get this 'url' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetUrl(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsUrlAnyURI(idx) { - k = t.raw.GetUrlAnyURI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsUrlLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendUrl appends the value for property 'url'. -func (t *Tombstone) AppendUrl(k *url.URL) { - t.raw.AppendUrlAnyURI(k) - -} - -// PrependUrl prepends the value for property 'url'. -func (t *Tombstone) PrependUrl(k *url.URL) { - t.raw.PrependUrlAnyURI(k) - -} - -// RemoveUrl deletes the value from the specified index for property 'url'. -func (t *Tombstone) RemoveUrl(idx int) { - t.raw.RemoveUrlAnyURI(idx) - -} - -// HasUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasUrl(idx int) (p Presence) { - p = NoPresence - if t.raw.IsUrlAnyURI(idx) { - p = ConvenientPresence - } else if t.raw.IsUrlLink(idx) { - p = RawPresence - } - return - -} - -// LenTo returns the number of values this property contains. Each index be used with HasTo to determine if GetTo is safe to call or if raw handling would be needed.%!(EXTRA string=to) -func (t *Tombstone) LenTo() (idx int) { - return t.raw.ToLen() - -} - -// GetTo attempts to get this 'to' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsToIRI(idx) { - k = t.raw.GetToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendTo appends the value for property 'to'. -func (t *Tombstone) AppendTo(k *url.URL) { - t.raw.AppendToIRI(k) - -} - -// PrependTo prepends the value for property 'to'. -func (t *Tombstone) PrependTo(k *url.URL) { - t.raw.PrependToIRI(k) - -} - -// RemoveTo deletes the value from the specified index for property 'to'. -func (t *Tombstone) RemoveTo(idx int) { - t.raw.RemoveToIRI(idx) - -} - -// HasTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsToLink(idx) { - p = RawPresence - } else if t.raw.IsToIRI(idx) { - p = RawPresence - } - return - -} - -// LenBto returns the number of values this property contains. Each index be used with HasBto to determine if GetBto is safe to call or if raw handling would be needed.%!(EXTRA string=bto) -func (t *Tombstone) LenBto() (idx int) { - return t.raw.BtoLen() - -} - -// GetBto attempts to get this 'bto' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetBto(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBtoIRI(idx) { - k = t.raw.GetBtoIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBtoObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBtoLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBto appends the value for property 'bto'. -func (t *Tombstone) AppendBto(k *url.URL) { - t.raw.AppendBtoIRI(k) - -} - -// PrependBto prepends the value for property 'bto'. -func (t *Tombstone) PrependBto(k *url.URL) { - t.raw.PrependBtoIRI(k) - -} - -// RemoveBto deletes the value from the specified index for property 'bto'. -func (t *Tombstone) RemoveBto(idx int) { - t.raw.RemoveBtoIRI(idx) - -} - -// HasBto returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasBto(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBtoIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBtoLink(idx) { - p = RawPresence - } else if t.raw.IsBtoIRI(idx) { - p = RawPresence - } - return - -} - -// LenCc returns the number of values this property contains. Each index be used with HasCc to determine if GetCc is safe to call or if raw handling would be needed.%!(EXTRA string=cc) -func (t *Tombstone) LenCc() (idx int) { - return t.raw.CcLen() - -} - -// GetCc attempts to get this 'cc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetCc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsCcIRI(idx) { - k = t.raw.GetCcIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsCcObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsCcLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendCc appends the value for property 'cc'. -func (t *Tombstone) AppendCc(k *url.URL) { - t.raw.AppendCcIRI(k) - -} - -// PrependCc prepends the value for property 'cc'. -func (t *Tombstone) PrependCc(k *url.URL) { - t.raw.PrependCcIRI(k) - -} - -// RemoveCc deletes the value from the specified index for property 'cc'. -func (t *Tombstone) RemoveCc(idx int) { - t.raw.RemoveCcIRI(idx) - -} - -// HasCc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasCc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsCcIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsCcLink(idx) { - p = RawPresence - } else if t.raw.IsCcIRI(idx) { - p = RawPresence - } - return - -} - -// LenBcc returns the number of values this property contains. Each index be used with HasBcc to determine if GetBcc is safe to call or if raw handling would be needed.%!(EXTRA string=bcc) -func (t *Tombstone) LenBcc() (idx int) { - return t.raw.BccLen() - -} - -// GetBcc attempts to get this 'bcc' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetBcc(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsBccIRI(idx) { - k = t.raw.GetBccIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsBccObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsBccLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendBcc appends the value for property 'bcc'. -func (t *Tombstone) AppendBcc(k *url.URL) { - t.raw.AppendBccIRI(k) - -} - -// PrependBcc prepends the value for property 'bcc'. -func (t *Tombstone) PrependBcc(k *url.URL) { - t.raw.PrependBccIRI(k) - -} - -// RemoveBcc deletes the value from the specified index for property 'bcc'. -func (t *Tombstone) RemoveBcc(idx int) { - t.raw.RemoveBccIRI(idx) - -} - -// HasBcc returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasBcc(idx int) (p Presence) { - p = NoPresence - if t.raw.IsBccIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsBccLink(idx) { - p = RawPresence - } else if t.raw.IsBccIRI(idx) { - p = RawPresence - } - return - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Tombstone) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// GetDuration attempts to get this 'duration' property as a time.Duration. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetDuration() (r Resolution, k time.Duration) { - r = Unresolved - handled := false - if t.raw.IsDuration() { - k = t.raw.GetDuration() - if handled { - r = Resolved - } - } else if t.raw.IsDurationIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasDuration returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasDuration() (p Presence) { - p = NoPresence - if t.raw.IsDuration() { - p = ConvenientPresence - } else if t.raw.IsDurationIRI() { - p = RawPresence - } - return - -} - -// SetDuration sets the value for property 'duration'. -func (t *Tombstone) SetDuration(k time.Duration) { - t.raw.SetDuration(k) - -} - -// ResolveSource passes the actual concrete type to the resolver for handing property source. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) ResolveSource(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsSource() { - handled, err = r.dispatch(t.raw.GetSource()) - if handled { - s = Resolved - } - } else if t.raw.IsSourceIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasSource returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasSource() (p Presence) { - p = NoPresence - if t.raw.IsSource() { - p = ConvenientPresence - } else if t.raw.IsSourceIRI() { - p = RawPresence - } - return - -} - -// SetSource sets this value to be a 'Object' type. -func (t *Tombstone) SetSource(i vocab.ObjectType) { - t.raw.SetSource(i) - -} - -// ResolveInbox passes the actual concrete type to the resolver for handing property inbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) ResolveInbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsInboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetInboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsInboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasInbox() (p Presence) { - p = NoPresence - if t.raw.IsInboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsInboxAnyURI() { - p = RawPresence - } - return - -} - -// SetInbox sets this value to be a 'OrderedCollection' type. -func (t *Tombstone) SetInbox(i vocab.OrderedCollectionType) { - t.raw.SetInboxOrderedCollection(i) - -} - -// ResolveOutbox passes the actual concrete type to the resolver for handing property outbox. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) ResolveOutbox(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsOutboxOrderedCollection() { - handled, err = r.dispatch(t.raw.GetOutboxOrderedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsOutboxAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasOutbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasOutbox() (p Presence) { - p = NoPresence - if t.raw.IsOutboxOrderedCollection() { - p = ConvenientPresence - } else if t.raw.IsOutboxAnyURI() { - p = RawPresence - } - return - -} - -// SetOutbox sets this value to be a 'OrderedCollection' type. -func (t *Tombstone) SetOutbox(i vocab.OrderedCollectionType) { - t.raw.SetOutboxOrderedCollection(i) - -} - -// ResolveFollowing passes the actual concrete type to the resolver for handing property following. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) ResolveFollowing(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowingCollection() { - handled, err = r.dispatch(t.raw.GetFollowingCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowingOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowingAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowing returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasFollowing() (p Presence) { - p = NoPresence - if t.raw.IsFollowingCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowingOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowingAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowing sets this value to be a 'Collection' type. -func (t *Tombstone) SetFollowing(i vocab.CollectionType) { - t.raw.SetFollowingCollection(i) - -} - -// ResolveFollowers passes the actual concrete type to the resolver for handing property followers. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) ResolveFollowers(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsFollowersCollection() { - handled, err = r.dispatch(t.raw.GetFollowersCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsFollowersOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsFollowersAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasFollowers returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasFollowers() (p Presence) { - p = NoPresence - if t.raw.IsFollowersCollection() { - p = ConvenientPresence - } else if t.raw.IsFollowersOrderedCollection() { - p = RawPresence - } else if t.raw.IsFollowersAnyURI() { - p = RawPresence - } - return - -} - -// SetFollowers sets this value to be a 'Collection' type. -func (t *Tombstone) SetFollowers(i vocab.CollectionType) { - t.raw.SetFollowersCollection(i) - -} - -// ResolveLiked passes the actual concrete type to the resolver for handing property liked. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) ResolveLiked(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikedCollection() { - handled, err = r.dispatch(t.raw.GetLikedCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikedOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikedAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLiked returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasLiked() (p Presence) { - p = NoPresence - if t.raw.IsLikedCollection() { - p = ConvenientPresence - } else if t.raw.IsLikedOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikedAnyURI() { - p = RawPresence - } - return - -} - -// SetLiked sets this value to be a 'Collection' type. -func (t *Tombstone) SetLiked(i vocab.CollectionType) { - t.raw.SetLikedCollection(i) - -} - -// ResolveLikes passes the actual concrete type to the resolver for handing property likes. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) ResolveLikes(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsLikesCollection() { - handled, err = r.dispatch(t.raw.GetLikesCollection()) - if handled { - s = Resolved - } - } else if t.raw.IsLikesOrderedCollection() { - s = RawResolutionNeeded - } else if t.raw.IsLikesAnyURI() { - s = RawResolutionNeeded - } - return - -} - -// HasLikes returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasLikes() (p Presence) { - p = NoPresence - if t.raw.IsLikesCollection() { - p = ConvenientPresence - } else if t.raw.IsLikesOrderedCollection() { - p = RawPresence - } else if t.raw.IsLikesAnyURI() { - p = RawPresence - } - return - -} - -// SetLikes sets this value to be a 'Collection' type. -func (t *Tombstone) SetLikes(i vocab.CollectionType) { - t.raw.SetLikesCollection(i) - -} - -// LenStreams returns the number of values this property contains. Each index be used with HasStreams to determine if GetStreams is safe to call or if raw handling would be needed.%!(EXTRA string=streams) -func (t *Tombstone) LenStreams() (idx int) { - return t.raw.StreamsLen() - -} - -// GetStreams attempts to get this 'streams' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetStreams(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if /*t.raw.HasStreams(idx)*/ true { - k = t.raw.GetStreams(idx) - if handled { - r = Resolved - } - } - return - -} - -// AppendStreams appends the value for property 'streams'. -func (t *Tombstone) AppendStreams(k *url.URL) { - t.raw.AppendStreams(k) - -} - -// PrependStreams prepends the value for property 'streams'. -func (t *Tombstone) PrependStreams(k *url.URL) { - t.raw.PrependStreams(k) - -} - -// RemoveStreams deletes the value from the specified index for property 'streams'. -func (t *Tombstone) RemoveStreams(idx int) { - t.raw.RemoveStreams(idx) - -} - -// GetPreferredUsername attempts to get this 'preferredUsername' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetPreferredUsername() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsPreferredUsername() { - k = t.raw.GetPreferredUsername() - if handled { - r = Resolved - } - } else if t.raw.IsPreferredUsernameIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasPreferredUsername returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasPreferredUsername() (p Presence) { - p = NoPresence - if t.raw.IsPreferredUsername() { - p = ConvenientPresence - } else if t.raw.IsPreferredUsernameIRI() { - p = RawPresence - } - return - -} - -// SetPreferredUsername sets the value for property 'preferredUsername'. -func (t *Tombstone) SetPreferredUsername(k string) { - t.raw.SetPreferredUsername(k) - -} - -// PreferredUsernameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Tombstone) PreferredUsernameLanguages() (l []string) { - return t.raw.PreferredUsernameMapLanguages() - -} - -// GetPreferredUsernameMap retrieves the value of 'preferredUsername' for the specified language, or an empty string if it does not exist -func (t *Tombstone) GetPreferredUsernameForLanguage(l string) (v string) { - return t.raw.GetPreferredUsernameMap(l) - -} - -// SetPreferredUsernameForLanguage sets the value of 'preferredUsername' for the specified language -func (t *Tombstone) SetPreferredUsernameForLanguage(l string, v string) { - t.raw.SetPreferredUsernameMap(l, v) - -} - -// ResolveEndpoints passes the actual concrete type to the resolver for handing property endpoints. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) ResolveEndpoints(r *Resolver) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsEndpoints() { - handled, err = r.dispatch(t.raw.GetEndpoints()) - if handled { - s = Resolved - } - } else if t.raw.IsEndpointsIRI() { - s = RawResolutionNeeded - } - return - -} - -// HasEndpoints returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasEndpoints() (p Presence) { - p = NoPresence - if t.raw.IsEndpoints() { - p = ConvenientPresence - } else if t.raw.IsEndpointsIRI() { - p = RawPresence - } - return - -} - -// SetEndpoints sets this value to be a 'Object' type. -func (t *Tombstone) SetEndpoints(i vocab.ObjectType) { - t.raw.SetEndpoints(i) - -} - -// GetProxyUrl attempts to get this 'proxyUrl' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetProxyUrl() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProxyUrl() { - k = t.raw.GetProxyUrl() - if handled { - r = Resolved - } - } - return - -} - -// HasProxyUrl returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasProxyUrl() (p Presence) { - p = NoPresence - if t.raw.HasProxyUrl() { - p = ConvenientPresence - } - return - -} - -// SetProxyUrl sets the value for property 'proxyUrl'. -func (t *Tombstone) SetProxyUrl(k *url.URL) { - t.raw.SetProxyUrl(k) - -} - -// GetOauthAuthorizationEndpoint attempts to get this 'oauthAuthorizationEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetOauthAuthorizationEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthAuthorizationEndpoint() { - k = t.raw.GetOauthAuthorizationEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthAuthorizationEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasOauthAuthorizationEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthAuthorizationEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthAuthorizationEndpoint sets the value for property 'oauthAuthorizationEndpoint'. -func (t *Tombstone) SetOauthAuthorizationEndpoint(k *url.URL) { - t.raw.SetOauthAuthorizationEndpoint(k) - -} - -// GetOauthTokenEndpoint attempts to get this 'oauthTokenEndpoint' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetOauthTokenEndpoint() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasOauthTokenEndpoint() { - k = t.raw.GetOauthTokenEndpoint() - if handled { - r = Resolved - } - } - return - -} - -// HasOauthTokenEndpoint returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasOauthTokenEndpoint() (p Presence) { - p = NoPresence - if t.raw.HasOauthTokenEndpoint() { - p = ConvenientPresence - } - return - -} - -// SetOauthTokenEndpoint sets the value for property 'oauthTokenEndpoint'. -func (t *Tombstone) SetOauthTokenEndpoint(k *url.URL) { - t.raw.SetOauthTokenEndpoint(k) - -} - -// GetProvideClientKey attempts to get this 'provideClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetProvideClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasProvideClientKey() { - k = t.raw.GetProvideClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasProvideClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasProvideClientKey() (p Presence) { - p = NoPresence - if t.raw.HasProvideClientKey() { - p = ConvenientPresence - } - return - -} - -// SetProvideClientKey sets the value for property 'provideClientKey'. -func (t *Tombstone) SetProvideClientKey(k *url.URL) { - t.raw.SetProvideClientKey(k) - -} - -// GetSignClientKey attempts to get this 'signClientKey' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetSignClientKey() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSignClientKey() { - k = t.raw.GetSignClientKey() - if handled { - r = Resolved - } - } - return - -} - -// HasSignClientKey returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasSignClientKey() (p Presence) { - p = NoPresence - if t.raw.HasSignClientKey() { - p = ConvenientPresence - } - return - -} - -// SetSignClientKey sets the value for property 'signClientKey'. -func (t *Tombstone) SetSignClientKey(k *url.URL) { - t.raw.SetSignClientKey(k) - -} - -// GetSharedInbox attempts to get this 'sharedInbox' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Tombstone) GetSharedInbox() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasSharedInbox() { - k = t.raw.GetSharedInbox() - if handled { - r = Resolved - } - } - return - -} - -// HasSharedInbox returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Tombstone) HasSharedInbox() (p Presence) { - p = NoPresence - if t.raw.HasSharedInbox() { - p = ConvenientPresence - } - return - -} - -// SetSharedInbox sets the value for property 'sharedInbox'. -func (t *Tombstone) SetSharedInbox(k *url.URL) { - t.raw.SetSharedInbox(k) - -} - -// A specialized Link that represents an @mention. This is a convenience wrapper of a type with the same name in the vocab package. Accessing it with the Raw function allows direct manipulaton of the object, and does not provide the same integrity guarantees as this package. -type Mention struct { - // The raw type from the vocab package - raw *vocab.Mention -} - -// Raw returns the vocab type for manaual manipulation. Note that manipulating the underlying type to be in an inconsistent state may cause this convenience type's methods to later fail. -func (t *Mention) Raw() (n *vocab.Mention) { - return t.raw - -} - -// Serialize turns this object into a map[string]interface{}. -func (t *Mention) Serialize() (m map[string]interface{}, err error) { - return t.raw.Serialize() - -} - -// LenAttributedTo returns the number of values this property contains. Each index be used with HasAttributedTo to determine if GetAttributedTo is safe to call or if raw handling would be needed.%!(EXTRA string=attributedTo) -func (t *Mention) LenAttributedTo() (idx int) { - return t.raw.AttributedToLen() - -} - -// GetAttributedTo attempts to get this 'attributedTo' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Mention) GetAttributedTo(idx int) (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.IsAttributedToIRI(idx) { - k = t.raw.GetAttributedToIRI(idx) - if handled { - r = Resolved - } - } else if t.raw.IsAttributedToObject(idx) { - r = RawResolutionNeeded - } else if t.raw.IsAttributedToLink(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendAttributedTo appends the value for property 'attributedTo'. -func (t *Mention) AppendAttributedTo(k *url.URL) { - t.raw.AppendAttributedToIRI(k) - -} - -// PrependAttributedTo prepends the value for property 'attributedTo'. -func (t *Mention) PrependAttributedTo(k *url.URL) { - t.raw.PrependAttributedToIRI(k) - -} - -// RemoveAttributedTo deletes the value from the specified index for property 'attributedTo'. -func (t *Mention) RemoveAttributedTo(idx int) { - t.raw.RemoveAttributedToIRI(idx) - -} - -// HasAttributedTo returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Mention) HasAttributedTo(idx int) (p Presence) { - p = NoPresence - if t.raw.IsAttributedToIRI(idx) { - p = ConvenientPresence - } else if t.raw.IsAttributedToLink(idx) { - p = RawPresence - } else if t.raw.IsAttributedToIRI(idx) { - p = RawPresence - } - return - -} - -// GetHref attempts to get this 'href' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Mention) GetHref() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasHref() { - k = t.raw.GetHref() - if handled { - r = Resolved - } - } - return - -} - -// HasHref returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Mention) HasHref() (p Presence) { - p = NoPresence - if t.raw.HasHref() { - p = ConvenientPresence - } - return - -} - -// SetHref sets the value for property 'href'. -func (t *Mention) SetHref(k *url.URL) { - t.raw.SetHref(k) - -} - -// GetId attempts to get this 'id' property as a *url.URL. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Mention) GetId() (r Resolution, k *url.URL) { - r = Unresolved - handled := false - if t.raw.HasId() { - k = t.raw.GetId() - if handled { - r = Resolved - } - } - return - -} - -// HasId returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Mention) HasId() (p Presence) { - p = NoPresence - if t.raw.HasId() { - p = ConvenientPresence - } - return - -} - -// SetId sets the value for property 'id'. -func (t *Mention) SetId(k *url.URL) { - t.raw.SetId(k) - -} - -// LenRel returns the number of values this property contains. Each index be used with HasRel to determine if GetRel is safe to call or if raw handling would be needed.%!(EXTRA string=rel) -func (t *Mention) LenRel() (idx int) { - return t.raw.RelLen() - -} - -// GetRel attempts to get this 'rel' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Mention) GetRel(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsRel(idx) { - k = t.raw.GetRel(idx) - if handled { - r = Resolved - } - } else if t.raw.IsRelIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendRel appends the value for property 'rel'. -func (t *Mention) AppendRel(k string) { - t.raw.AppendRel(k) - -} - -// PrependRel prepends the value for property 'rel'. -func (t *Mention) PrependRel(k string) { - t.raw.PrependRel(k) - -} - -// RemoveRel deletes the value from the specified index for property 'rel'. -func (t *Mention) RemoveRel(idx int) { - t.raw.RemoveRel(idx) - -} - -// HasRel returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Mention) HasRel(idx int) (p Presence) { - p = NoPresence - if t.raw.IsRel(idx) { - p = ConvenientPresence - } else if t.raw.IsRelIRI(idx) { - p = RawPresence - } - return - -} - -// LenType returns the number of values this property contains. Each index be used with HasType to determine if GetType is safe to call or if raw handling would be needed.%!(EXTRA string=type) -func (t *Mention) LenType() (idx int) { - return t.raw.TypeLen() - -} - -// GetType attempts to get this 'type' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Mention) GetType(idx int) (r Resolution, s string) { - r = Unresolved - if tmp := t.raw.GetType(idx); tmp != nil { - ok := false - if s, ok = tmp.(string); ok { - r = Resolved - } else { - r = RawResolutionNeeded - } - } - return - -} - -// AppendType appends the value for property 'type'. -func (t *Mention) AppendType(i interface{}) { - t.raw.AppendType(i) - -} - -// PrependType prepends the value for property 'type'. -func (t *Mention) PrependType(i interface{}) { - t.raw.PrependType(i) - -} - -// RemoveType deletes the value from the specified index for property 'type'. -func (t *Mention) RemoveType(idx int) { - t.raw.RemoveType(idx) - -} - -// GetMediaType attempts to get this 'mediaType' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Mention) GetMediaType() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsMediaType() { - k = t.raw.GetMediaType() - if handled { - r = Resolved - } - } else if t.raw.IsMediaTypeIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasMediaType returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Mention) HasMediaType() (p Presence) { - p = NoPresence - if t.raw.IsMediaType() { - p = ConvenientPresence - } else if t.raw.IsMediaTypeIRI() { - p = RawPresence - } - return - -} - -// SetMediaType sets the value for property 'mediaType'. -func (t *Mention) SetMediaType(k string) { - t.raw.SetMediaType(k) - -} - -// LenName returns the number of values this property contains. Each index be used with HasName to determine if GetName is safe to call or if raw handling would be needed.%!(EXTRA string=name) -func (t *Mention) LenName() (idx int) { - return t.raw.NameLen() - -} - -// GetName attempts to get this 'name' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Mention) GetName(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsNameString(idx) { - k = t.raw.GetNameString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsNameLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsNameIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendName appends the value for property 'name'. -func (t *Mention) AppendName(k string) { - t.raw.AppendNameString(k) - -} - -// PrependName prepends the value for property 'name'. -func (t *Mention) PrependName(k string) { - t.raw.PrependNameString(k) - -} - -// RemoveName deletes the value from the specified index for property 'name'. -func (t *Mention) RemoveName(idx int) { - t.raw.RemoveNameString(idx) - -} - -// HasName returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Mention) HasName(idx int) (p Presence) { - p = NoPresence - if t.raw.IsNameString(idx) { - p = ConvenientPresence - } else if t.raw.IsNameLangString(idx) { - p = RawPresence - } else if t.raw.IsNameIRI(idx) { - p = RawPresence - } - return - -} - -// NameLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Mention) NameLanguages() (l []string) { - return t.raw.NameMapLanguages() - -} - -// GetNameMap retrieves the value of 'name' for the specified language, or an empty string if it does not exist -func (t *Mention) GetNameForLanguage(l string) (v string) { - return t.raw.GetNameMap(l) - -} - -// SetNameForLanguage sets the value of 'name' for the specified language -func (t *Mention) SetNameForLanguage(l string, v string) { - t.raw.SetNameMap(l, v) - -} - -// LenSummary returns the number of values this property contains. Each index be used with HasSummary to determine if GetSummary is safe to call or if raw handling would be needed.%!(EXTRA string=summary) -func (t *Mention) LenSummary() (idx int) { - return t.raw.SummaryLen() - -} - -// GetSummary attempts to get this 'summary' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Mention) GetSummary(idx int) (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsSummaryString(idx) { - k = t.raw.GetSummaryString(idx) - if handled { - r = Resolved - } - } else if t.raw.IsSummaryLangString(idx) { - r = RawResolutionNeeded - } else if t.raw.IsSummaryIRI(idx) { - r = RawResolutionNeeded - } - return - -} - -// AppendSummary appends the value for property 'summary'. -func (t *Mention) AppendSummary(k string) { - t.raw.AppendSummaryString(k) - -} - -// PrependSummary prepends the value for property 'summary'. -func (t *Mention) PrependSummary(k string) { - t.raw.PrependSummaryString(k) - -} - -// RemoveSummary deletes the value from the specified index for property 'summary'. -func (t *Mention) RemoveSummary(idx int) { - t.raw.RemoveSummaryString(idx) - -} - -// HasSummary returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Mention) HasSummary(idx int) (p Presence) { - p = NoPresence - if t.raw.IsSummaryString(idx) { - p = ConvenientPresence - } else if t.raw.IsSummaryLangString(idx) { - p = RawPresence - } else if t.raw.IsSummaryIRI(idx) { - p = RawPresence - } - return - -} - -// SummaryLanguages returns all languages for this property's language mapping, or nil if there are none. -func (t *Mention) SummaryLanguages() (l []string) { - return t.raw.SummaryMapLanguages() - -} - -// GetSummaryMap retrieves the value of 'summary' for the specified language, or an empty string if it does not exist -func (t *Mention) GetSummaryForLanguage(l string) (v string) { - return t.raw.GetSummaryMap(l) - -} - -// SetSummaryForLanguage sets the value of 'summary' for the specified language -func (t *Mention) SetSummaryForLanguage(l string, v string) { - t.raw.SetSummaryMap(l, v) - -} - -// GetHreflang attempts to get this 'hreflang' property as a string. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Mention) GetHreflang() (r Resolution, k string) { - r = Unresolved - handled := false - if t.raw.IsHreflang() { - k = t.raw.GetHreflang() - if handled { - r = Resolved - } - } else if t.raw.IsHreflangIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasHreflang returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Mention) HasHreflang() (p Presence) { - p = NoPresence - if t.raw.IsHreflang() { - p = ConvenientPresence - } else if t.raw.IsHreflangIRI() { - p = RawPresence - } - return - -} - -// SetHreflang sets the value for property 'hreflang'. -func (t *Mention) SetHreflang(k string) { - t.raw.SetHreflang(k) - -} - -// GetHeight attempts to get this 'height' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Mention) GetHeight() (r Resolution, k int64) { - r = Unresolved - handled := false - if t.raw.IsHeight() { - k = t.raw.GetHeight() - if handled { - r = Resolved - } - } else if t.raw.IsHeightIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasHeight returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Mention) HasHeight() (p Presence) { - p = NoPresence - if t.raw.IsHeight() { - p = ConvenientPresence - } else if t.raw.IsHeightIRI() { - p = RawPresence - } - return - -} - -// SetHeight sets the value for property 'height'. -func (t *Mention) SetHeight(k int64) { - t.raw.SetHeight(k) - -} - -// GetWidth attempts to get this 'width' property as a int64. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling. -func (t *Mention) GetWidth() (r Resolution, k int64) { - r = Unresolved - handled := false - if t.raw.IsWidth() { - k = t.raw.GetWidth() - if handled { - r = Resolved - } - } else if t.raw.IsWidthIRI() { - r = RawResolutionNeeded - } - return - -} - -// HasWidth returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Mention) HasWidth() (p Presence) { - p = NoPresence - if t.raw.IsWidth() { - p = ConvenientPresence - } else if t.raw.IsWidthIRI() { - p = RawPresence - } - return - -} - -// SetWidth sets the value for property 'width'. -func (t *Mention) SetWidth(k int64) { - t.raw.SetWidth(k) - -} - -// LenPreview returns the number of values this property contains. Each index be used with HasPreview to determine if ResolvePreview is safe to call or if raw handling would be needed.%!(EXTRA string=preview) -func (t *Mention) LenPreview() (idx int) { - return t.raw.PreviewLen() - -} - -// ResolvePreview passes the actual concrete type to the resolver for handing property preview. It returns a Resolution appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Mention) ResolvePreview(r *Resolver, idx int) (s Resolution, err error) { - s = Unresolved - handled := false - if t.raw.IsPreviewObject(idx) { - handled, err = r.dispatch(t.raw.GetPreviewObject(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewLink(idx) { - handled, err = r.dispatch(t.raw.GetPreviewLink(idx)) - if handled { - s = Resolved - } - } else if t.raw.IsPreviewIRI(idx) { - s = RawResolutionNeeded - } - return - -} - -// HasPreview returns a Presence appropriate for clients to determine whether it would be necessary to do raw handling, if desired. -func (t *Mention) HasPreview(idx int) (p Presence) { - p = NoPresence - if t.raw.IsPreviewObject(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewLink(idx) { - p = ConvenientPresence - } else if t.raw.IsPreviewIRI(idx) { - p = RawPresence - } - return - -} - -// AppendPreview appends an 'Object' typed value. -func (t *Mention) AppendPreview(i vocab.ObjectType) { - t.raw.AppendPreviewObject(i) - -} - -// PrependPreview prepends an 'Object' typed value. -func (t *Mention) PrependPreview(i vocab.ObjectType) { - t.raw.PrependPreviewObject(i) - -} - -// AppendPreviewLink appends a 'Link' typed value. -func (t *Mention) AppendPreviewLink(i vocab.LinkType) { - t.raw.AppendPreviewLink(i) - -} - -// PrependPreviewLink prepends a 'Link' typed value. -func (t *Mention) PrependPreviewLink(i vocab.LinkType) { - t.raw.PrependPreviewLink(i) - -} diff --git a/tools/streams/gen/as.go b/tools/streams/gen/as.go index 02e7bec..bc99486 100644 --- a/tools/streams/gen/as.go +++ b/tools/streams/gen/as.go @@ -23,22 +23,51 @@ const ( UnknownLanguage = "und" ) -func GenerateConvenienceTypes(types []*defs.Type) ([]byte, error) { +type File struct { + Name string + Content []byte +} + +func GenerateConvenienceTypes(types []*defs.Type) (f []*File, err error) { p := generatePackageDefinition() p.Defs = append(p.Defs, generateResolver(types)) + + var b []byte + b, err = format.Source([]byte(p.Generate())) + f = append(f, &File{ + Name: "gen_streams.go", + Content: b, + }) for _, t := range types { - funcs, defs := generateDefinitions(t) + p := &defs.PackageDef{ + Name: "streams", + } + funcs, defs, imports := generateDefinitions(t) + imports["github.com/go-fed/activity/vocab"] = true + for i, _ := range imports { + p.Imports = append(p.Imports, i) + } p.F = append(p.F, funcs...) p.Defs = append(p.Defs, defs...) + + var b []byte + b, err = format.Source([]byte(p.Generate())) + if err != nil { + return + } + f = append(f, &File{ + Name: fmt.Sprintf("gen_%s.go", strings.ToLower(t.Name)), + Content: b, + }) } - return format.Source([]byte(p.Generate())) + return } func generatePackageDefinition() *defs.PackageDef { return &defs.PackageDef{ Name: "streams", Comment: "Package streams is a convenience wrapper around the raw ActivityStream vocabulary. This package is code-generated to permit more powerful expressions and manipulations of the ActivityStreams Vocabulary types. This package also does not permit use of 'unknown' properties, or those that are outside of the ActivityStream Vocabulary specification. However, it still correctly propagates them when repeatedly re-and-de-serialized. Custom extensions of the vocabulary are supported by modifying the data definitions in the generation tool and rerunning it. Do not modify this package directly.", - Imports: []string{"fmt", "github.com/go-fed/activity/vocab", "net/url", "time"}, + Imports: []string{"fmt", "github.com/go-fed/activity/vocab"}, Raw: `type Resolution int const ( @@ -209,7 +238,8 @@ func generateResolver(types []*defs.Type) *defs.StructDef { return this } -func generateDefinitions(t *defs.Type) (fd []*defs.FunctionDef, sd []*defs.StructDef) { +func generateDefinitions(t *defs.Type) (fd []*defs.FunctionDef, sd []*defs.StructDef, imports map[string]bool) { + imports = make(map[string]bool) this := &defs.StructDef{ Typename: t.Name, Comment: t.Notes + convenienceComment, @@ -242,6 +272,13 @@ func generateDefinitions(t *defs.Type) (fd []*defs.FunctionDef, sd []*defs.Struc }...) for _, p := range t.GetProperties() { generatePropertyHelpers(p, this) + for _, r := range p.Range { + if r.V != nil { + for _, i := range r.V.Imports { + imports[i] = true + } + } + } } return } diff --git a/tools/streams/main.go b/tools/streams/main.go index 175d4f7..03b35e6 100644 --- a/tools/streams/main.go +++ b/tools/streams/main.go @@ -8,12 +8,14 @@ import ( func main() { allTypes := append(defs.AllCoreTypes, defs.AllExtendedTypes...) - b, err := gen.GenerateConvenienceTypes(allTypes) + files, err := gen.GenerateConvenienceTypes(allTypes) if err != nil { panic(err) } - err = ioutil.WriteFile("streams.go", b, 0666) - if err != nil { - panic(err) + for _, f := range files { + err = ioutil.WriteFile(f.Name, f.Content, 0666) + if err != nil { + panic(err) + } } } diff --git a/tools/streams/streams b/tools/streams/streams new file mode 100755 index 0000000000000000000000000000000000000000..9573276a3bafae68ba61f742ffebd7f8f1c37f93 GIT binary patch literal 3366304 zcmeFa3wTu3)i*vN85odw1_22QGSrB{T1~vPiK0#*!ILqv<+Ul!Ts#ek3s#O8SY61uWEY~WCts>seIQWV;NI=Q=`>lP>TyjC*uYKOH|Nm2- zhn#cvb?tTAYp=cbo{jrIKiI?NN=tXST;1@$7yh?+kbo!u4a9#P|EEkTFFdz+Qt|k) zOilUc6irEN|G{=@(7}``6N)P)q~xmlI|rvEy6kVj=5pgdpZqsvO7O~>pn6x|?b`Dy z(0_lcrV4pou8c(Sb{}kS<_%LX3tr|FX%AmxL=*T9KGa=`;9KBv%C~<`nKEn6b(h~T zW6G>x_2qdT$NSm|N2cHl-ziOaGF-JxP`$}`=Tu!efmLUcirBmGZcIl83OM^^@&Y zT`}W&r@{8^HQMbh__g8)d>?YW?I{g%b*s`r0{I=&)?HJvy7;{O>CAFqQuu zTuzyCJ!q;(TNRwyWqa`+&>rQ<`RCBn`9^y;pq)7Dbp@aQW4i|0b6|1WNPbS45^qY9 z+qdU`;}{v(o^MqxeE&dum(QA&)Io>#mJgBk^fd}!ESd~oB2_hFk2l_E`}P*i8!A<@ zvJ;&isy))RS@cQK#KQ5T6P2D*?Zgurhsf*A-`e`X&VY)Of56+7msejk<+95!pLykM z;ge3=d&wD)-JV^Yk7P1~FI0Pwuq&B~ai+BQ((?+wOBbsKUushDv8?^C)Apv#yzDwQ z*uK5Kla7^!UVUA)*Y}#CPCL%C)Ap*WFTWlw&T8M@#(~F4L;EMG_BIYb)@jFicGX@G zimF3m1xj#{Z)~mEUA22Ks^iiHt0k z!T65p=W^{#%X2ke+|6|ulFFHme@y3p=Uu&Z{+IPT`*%1JefZxS|4*)-HS^>dS6_be z)HySz;+y}-l`@6)fCa?=|M~YH4EzTJ|G~h2Fz_D?{QnpOZN77F@LgVg^^B>$lA<$w zKN&Uh^xy@fetylAifOaX4UVn8COD($=m_Ggd(sM7k@U)3H6x8Zpy2$gE+{O#aBA7fH%!kTS2O;y{8LKvN~d3U%ABI|yrQ4<^0mF`{JT;& zdmpz5*0+Ac?2tkdd$D`f)Ne%%OUd-PDFM>jIEttT**>n2+Zt;$(x9X~wXZV8$Cnxbs6 z{`ul;FrR8V+B%sKb#n$`@gjf$eo#Bc-Y4`bm)jo|zYsGn8v|sQ~w+|}1tjoJ< z|DC6j;BSYJ$VdT*PWt#-^SZQ&YqgV_s=I6EVieL&YOL;d%Z;d>p~Tnp=b8;Z zP};mF8-I;^_-?Fk`k+tVdSi3mj;2_TysgH%rl>dX9ixFoA{o6DKJuFNmxn%a;WfXz zzS^bdHR;P3pdAvUtmad-j#od{cX7?7bKg z_Gv=G+TrJ5=lJ(^cuUb9l!p# z{t5uA(;uWUrN6;;UWfiNI_poHe+Bp!V=U(wb&gSI%N1%y(!wOXZkC{zi!k`Udi@ra zrY$KMu(!z9m|*S?D?50Ny)oAw@oBU(m_it(!1XiSY>#NOKb2j{wqw-aI18pRmJpgG!jf4bk;l zAHJ5MY~a{-Yu_R$-(L|usrJH;?{8CA{fQ|w8U3w{ucZ%^w$@v!s%~77yW7T z2X>)v>KlXC0A-f z9mipcJZtmEDg5~oHkGy{bI=t-UE#G_xKUU*Gt2&bUVZkkKS4UzYWH`S4|S!PnJ-Np z>Z)H`eIX{}Kfl}$ld=1k*AKyz?tVsn{Yrg3p}w9}U*2g$)wInOaxI#ZX`e6FaYMU7 zqd3-?9yzN>Rk;8SSS_o7)yP?eDyfu7AFHG>D(M_1Z9!7(0f0~f*hFI3jnCCX{aj_zo{(A}YB-mx@;+*&f=Xt;c59fg zIvUUpJa&6KHY#}VDJB|BY*m6^VngNcp~34AN6Dr07wy9=n}KB`#+%FW`knU66}&gw z?dxm|gD%QO2GNozD_w$EOai*lu@(HHtxeP^bX)~H&&8PXS8_Z6bOstie>vI`_oPZN zFT6RglhCNId^^9!7g#^BmQ-D~)pGZ&tu~)xU^e*qP#es)QEKg8M-BlPt81yNK^(C= zVNL?k7#ij?tNFPM7m9cR=pZ5D>N=Knh3eRDo72>|4c%C55Q^y>K@LWcyAlj~*`KHk zpwh{p^tV{kMp1T=_4JygEKVubd6MOz+qP%uzDg(XMiX3F)whF#AG{y(2Q_$|Zk7X) zuDo|+-SxJW0b{LRu=Un)x_R1m-F&SUO$N;Q4S19=XX8z$1`3+|+I?&M;kN3*C~*(6 zbaTo5d?4Ga7ksJR*A!kG{4*vEZ`#VdwXv`A+G3md0 z_ZCh8nKTTV3wB*&+3RG*f&|&yi@F+N}2`3PP!tY7^K}v#XnB7)EI>}ES^2)Dd zjIwq>)>DbB>R=Mn=wRnQdclfnxE12mGsl%9DfqcrXQ2_`J2^Arj$8{>MFzHehUv&R zS-JQ)g?j~>Cw|R&BGG8aH;3ThcZegMec*Q=+sf6J=ve&KR@c~lU{M+zp_0QO7u4G@< z$OJH2c!8aTK9O~NBCC2@UL$3yGFGBQ7RI9}4Zm&zcN4fe1mH+ji$=8LvL@QC`Sdoa zjIw=nb22KX?a+i`pv<N0wE54$ zU#Jh?p_?yeQ?T@cx3&2Tk)|!F8sOi%+OLJN;p_tU?^{S2-K&L1%J*%M)1L>>WDSH0 z!rD}3?9>Zdwa7ZO5-@vjC^PS6CuQaXY`4rON0 zib9JbH;qnY2N#!^b&LfeHa!7jQ`ztp=S6z|L^pb8mke(#iDUqw!j?d-b*wh*q~&YXd+e*BFuc&CPKlzAi~DYU&KtJAs?*mPb|`t z?c*$s>kt=EP(>6>CkmzuO5-Z+fN(e`*oSOchy4GYiAw%u_N4qbB5f}w*06z>&<8_m zTl;ABw5apeQcu+4O+-F0e1&e-_$l@wQ66SZZoupjC|Ei3WMp87=jdq%^@0Plvr3GX zlHo1-@B;ye_$rQNI>u7966w0}e(XacE|(G`KmeWPBv6iSi~u_Xxekx>M0c4^$t%Dh z`mpPW$|OBw;Y9Pbtpm0COc}Qh))4QxKR<7;ZoaC9(F;zo@RfmrbvMC|all7GZ4Am9tMr-L1Is@Te?GECxv5*FZfX)}(OgWoAjS0R?N zk}n-NuqL1egFW_SlC9Po1hpP1pd?u}kEOe!k3q;FQOW#;{YZGk$X}3VPDJ1@;b8z? zf|ove-F`+!YoTr^rY*Usf9(N}wqS?gelk!||E_lDpZFEpKU53d!MBL}j4uYebTea< zUa(SIa1YarP1xwzs=xLKsC+x%(hI)Q7R;6$$_rYluVXR{)k=9{X28=W29@>7pO6KN zWrba4=3g(wLMKw=#agdaH~d~(;`&T8%CpS=&#GKs{g&!Mx}gK*0TPUxm{e;Zu|3&B zbr{W7?oukbO>oEz!&~eHvHE5MNNq{sfW@^zD8i8-KC~AN;{-%G$q=1sL!?K_D*;tc z-6;1)uOvT1O&Oc4^-I`Eb96kDBJPL2J_4UmonJ3g!xGq_FGO>Qm7oi@jDE_hP)K;` zkJxx}Z@d7bM@eX+IT$)-NEq9_bz_{DJ?tTCpvQ~QW9+~6W#~|$+ju)~i@t9!+2<;j ziMZdM;4I_a%U^ePXzx9l+=ATGHzYCA0F2wZ@E3O0)^w%B1S7+kb*5xlFGjHBd_?hB z!dmIf{spfAqadiCRPo68_z6`(BaiD3QcA5(+Vkr%h%46XcGt2HShj{N3#AcO%8$#C zOgCBe&TQHq;kDIgn&pGQ4yTEcgqPmBS%D?lyTMGjwPs_10rP%qb^q1j?8T@cJ=f@U zt7`EMyR?7*^MP^fa?oSv0v0h1KumPZK>_Lo%mT3oSW5w5>VxXnYW3*=0fjJ7bD z{#*c$cWP3E5x_3>=aLu9{&#aUks6;Kso@sHg~cGfyu-ejqZBYt2C9js`Rkh?IL_R@V1tX+v`KHS?Imf9S<4PrwZv z&7~%Vc+&9E^~fwe++8>02X7tEUMjN!k?Xz11mz4-AXQnqF&gYY z3gT^}3>-Y~0dg>r4$1ZQL~mfTtRwm5V-%^?f4o{&`*pKHExzeJW`xC0k#A;RiQY)c z*92Z!p9{!l14jY0YGD&EX66VfSUpQ$QyU+jSxUs;ezuu;jLIFRuNhe(^&!<(>jm8$ zii)o#iQj;WyhiK(KSO~3#_{CRx&ar7xB;0i>(y8qNDE+NzmvHH#jj@ZI~=Yu{evh5 zB`6&oCe)hCiMI&_{U}I9@pCXkiE$ucd|G0x){Q;Z@yG}mUj*U&j^{ixVEHSX1VLhtK;q88T+s?wt#beVXR~7(7EM4ZD~ao)a`mbT?Z4{Dpxn}v~3n{6zup5 zg~`@1tkwpSNNtL4HN`7OaM6Zhj?}*No4C}rqj4njflG*p08P0&?bSp8t2mNbSk@j3 zKfHRxcAaM>cy~A$-_{7JZCkHDf|gB;!Ui`QIKas)tdt?t4;>AiDig@eiZSsyVd5*! zoN()KTk#*4JSQ-S+Zvf?XI;28X}UO?S;woaI5wVy`wKl(CVKe&%T5nROAoUCfbxpC zuYW~}u9pMOViYt)*C$^&A_1QTAi5Fvx`&c_6{pqnxdg~MVF6~MH(;B~G}O-CIgCmp z#bqZ90(PKMge?M@zZ-p0H-ki3xR+`<~T_H zmTI4Fs41?34geC>>Nkc8$C=iw{@7X2O%{^cg}Kr^mS!*-(2?I-_$M++v*gE~q^a!V zdp;~Pv>s;_s!YJ?wTb|a>Hbq0)K+8l5z+=2(}z@7^km38m4y#tF@o)~hv-10THn_L zS=%9z&YYcsuh~_d;>r&Q=onS-^x>okEgXlbh%kY7t$Q{QkyP^7o?{9>P*>qb3VE!< zXdfjIGlKx#1kh}N{wa7sJoF-4euT%>89XSU;E_RjtXp16f#>hxL%^fWUqB7pNxTGA zFhbhED9Tpw6F=7L_bP-`*oHzIxN(ht5dLBr7CTCh+zX@774Al^132 z>L{xP;rdJ#lOp^qst~*2RWdPVaj@lBd~gz~#-hy=PBZ&2Jda%avT*H|>P&r2oikm< z8o(CEJ%eG+B}d%yAjhvb6I2Cf8qKj+h((Z*pg?O99FKtV*H_7Qzd++)yZ+<|D5^pq zKmtt7Q5w_aynJ-A06Tfxv<>V$HK{D4vIg6PtbGB~l;_BA-=aTKnh+VG==8zsqtAbTxHQG2bfSxsp zRe=tJf3PkUUZLGgLwq*N+g83|uNjV$B2^Vw7f{axBD$AFz0&kUibb$|IMk|OIvp^T zTpFO2^YRPBX#w**Kb8glGBU!A=pD;~S4XR5L0RN#wJi7<(gTJL?^K}|rYUf4qYtw6 z`(Gz73+N)@vS2{Mv^rR6#ZbS=YXNAKQU2&1V&J1utOeNF+TYu2foAJ9dEI6$!4p2h=oD2HmVOCb zGPdkm_e-fYYFS{)$40bMCvTfjFJQbI{TmdWb-lE6fIE0_d{oL;3mcxDSQjh;zO7=( z;=15WdD|2{i6tVLlgAU10G$ZRXP_H*X4j$$6^tlIg0)BzXu(9pq0QMgzLum%)gfb- z;_q;w^&r-b@g^}B_}W!PW~xNT0ZX?0tO?K?u~pVze@S*w7C-fF^iS9!5OrnyI_RVe z_NTg?Unf~!S@~DvT|6UN{WW;CVdzq;a19~)sImIYA1VtuD@xuqmK8yN@#!b5{I^o9 zeEOK$S@{`-ki>}lqkGz0`RlXA$}hSFlid`@%6F{SyYHiF!(;jD-@tnIeH69(WRrbOmpT^wC5 zGA;J#MQABL+tJ9n%Wf%)z~{&Aux_0L&~?;sC`iyjn#N#HXVI{dlIA7mX_us|2ekQb zlOUnp80U#tJmNpv#i;s_$-_?ywI)GmXM*eB4OSJI?mPXY>MdEt5WSK5no(J7ST_d3 zLnD1?OD1{3?*<2A&6n5s8uj}g?fDm`<3(Gz5*d$i?gseiDzwT&zr|;84eG{5-Pmru zFR%NM_!cAXUN8p_mhNu!U>fiU_ou;#G^ov9P-U$@u%y8;Do~u3t;=hGnoJPQL5)03 z_l0Ky#pT%7yb6EO)S(y z3dP<*mGt=6`m=W83lTf9rj*_~;M=X_se&eDxek-EJm$9UcXxAPmpqbr13-Jl#u?&& zh_79y`x2zm9DIbB26-#Pc-&Jl1Ye-iT@MQZVBTzI+rWd41ogtEtTPbZ!fMk|&0WDV zW?VD7FIm9&4RAbExF~0xEUT0=YqPx^c|i+R%!4s!t8lP$IJ=gGknFb}ZLvr36cDDO zpvpnx3Yh5kRNBBUI3M(gPQ)K;nwQ>2_Hu$rRkB=FPYErPF{`X2Vaf%aJn8r2}0caMmT6uM;3Hrf9%hCoBIS5i2cLb+C%j6WO*c*C?T(yIW4t* z5VvIAZq8S_@r-h{Vf{cmne?i_Q@xOId5zIpegj(AGB-jkotACyR(teFkZWUX)Uuv0 zmEe(O3Ky_KTJ(MI>rHLvlpywk10K3xk4)&3#ewGrhReRO?DYAqhxf(}z&o=Sv0rmS zQ@@N#U9Dm)0)}tboN}8@N(D!3l^FIDW>1UdMw>` zY0Q5n3A0BMv({0<0+-zgyuH~@!zS<-31?RVsY<1s!G&erZV@f0lq``)`w33t6aeD| zSb`z2wz~Jr+!BK9e0DqfHn9Z&BQHEh3d!!ER=-RNyqc|^rx(9LXUhzDK%mz5SeJ|Y z_Btdj%x-2$EE+cPDIxRaV1b3%mYu#wrRS)im~gg--Jm>AjV8_>g;h^N6G)5~E*6oP zEWTKugj7Vfk35+}fo9w&Tgexo?UB~4A_5T7iM1joi#@ASfc_&Qv2_zbo7n3x;ST{j zIE3O}c{v)s)83G90x)3HnSOAOa!0V^=LE2fY&?L$I3IO{`IP?|%w~m+A=wn9AsRoI z<^KL@vIyCg-H=DfUorq6WOG=9%FbbSZYHv=;`s_;n0rag0|owOpv zM_Vuv@>th;;PyvP(iU6`o~&zqqkCIltv-Nv$lcx$<}YZl`V;sKe;mb3TXK{Z<^f$* zu^RsH%t$>8Hfi;LM>@_7Ar4Qv#~8^19&0!B0|yFbaJJ}Z34-99K&`(Hfs&56mtRY2 zp$-^?^5?R?!DbTYAeNFGyf?@@N?30*H{xEOTur8~zu48{K%kna2y&;TA?VlI!7ee6 zFJfzTtBA#wUva{$u+Bji27y;3fJ(Rj1m&MbVr&C6WYhE7b5Fx!hRzDf`P4DkLl(@o+M0alu^iM?$?@p5(@=bp<91L z!RWWBPSrngZR`aM?0D;Jq;g=#YfBo5b?af4UCgpP_3w;Bjc*drpFt~-`ZrRMKw91-e7p#&IybI^M^$C)qJ=%{T7E)b1&_rtl z{H{Xj@&kakY0ioZMrNM@}6crj*3Fb(`-rt2Rp%Z)?uu0B0+F? z2b?-Z212oSQlk?j=`5>sleS1u!;y#pm|D$(At{)TcOX1;!fVzeTX=^U1!91<$Q(mGRbJhi!Jiyy$KPa}F8nBBTN05mu>! zWP||xM+);Yq(t9Az5;kFL}QqBED|Xi!*uO61@gTd+?_1@N4B2=GB}G}JBc=Dy*RmT zr?y}_IIFJph?|zZrPZ?saM}F31mm_N%WjFnF}i zUSWB&8skznQE8nmRb^=a{#u07 zPu3q;`b~C{JizGX!cK(ENtb1JUF(M0w{~mw|E7A;tjfoiP$ z5CVQjnD-$yngy8E;MPyW;7+hEL#np4DEkC$sUlz_}S7M_6#g(nPxc+!@#hLpHbHn zmXF{ZkR6n9kTjIxR-=(Tlt+o9h%TG= z915XVtLkVWvv90nL7u!|lxjhuvWv8(8ClZ`>sp4Nq}B8GSe{#2&_<4nyee*Y*zzAq zNKSkKvQ(VJ*Wt{9lEVP3AKD=dEru&2oZZOk#zWau1~iR!@;Q86Nz%|Z>uK+BWG%>I z6&Jfkl`MIN#h;R}c-01gh`CtdvVwv+mBkmU_@*Q~*T+`xXNPEY5uXwF)DxU-ZO7)K zzPRlwWCCRI2g7Q!(Q9>AtN+`-Mes4=m*tTF#l7KRvhjVA^fZ|!Ai^fBYvw3WuyT>L zlGEmWy&;|mZxv+)zKysy+?U)8Pq$I6IaVNGA}fQReb$k7n~oXpu>IN6rnT)G!kGl% z1s?ijFhW69o&ZQMl>oT5CJ9%$)GA7bzC4ToT6d_%0Oxeci@5uC3a64Sd%0o5d3_g6 z|5`PzT@G!qACrl*+DP{AM#9+^Ef~=Uk5VS!q7zntPl`|I19`4dEQdiUSCLInpl*>A zCvKhD!9f9a6LFEn7i;2o3Ijepgp)OQ?q@Z$N}=FCvOSk;Fj4f#?K_j!-FKUmI4)uB z4$REHIdJYk37kdt)k1UecNu_3BQ_647OLgHVQ=!2E?_ml!Y!vX>%SUoa&XhVmNk{z z16Bls7QRGE!=2gKdUr-^@wHD_bCF~4zrJOk_F9AenV^*jE!pT8n$#uVSm zHM=>v+Dm23N^65S@Rw(UY@tqu2ySY{hvV z21i8B^QuRdgi0J1$ZIZnxv>A9Irr?&|Ez>nn;M6dyz)Tb9ly?e?AYUxvZ7GD#beCu zqXT)LAmJ;$Y4wnjSGR4M-SWq~HinS$P2pd>=wpm|+D`*{`;hRR-n3>&$!ovdd)Cxj zR&0D1DF+K*&ype|&MeDoDbt=^U4oAAY=WzDryg1fDR1>@AubT~yghneO91-`^lQFO zl7?C{w0V`FF5W!a{G-(yqKvkvT;J?taZ)k!IN*Q)nrHP=ulsTMt_NNN7zg&$BIkp} z-h=0BAY62Tfi1dujGnh$U+y3Pm9ZVNa)`dnK>$)#>Zf+oUr8#06J?D<^yR5VdZ47r zkQ!+zpNQ9NvIfhoUJlxj-^~5lrl^nUU?ZJw7odS>U5yuo%NTK#?TbKfVel->6@c^R)?O~?%d1sWeO`4kEmhW4!KwaVeV=cgEjNjR_;Tns_^3hOYO4>8@t zk5&Bb!Fa&k@X}|@BLFfs+?IC8vDugg1%QQ4DS#3H!SSIH9_(D`8QjRp{L@d^we;D0 zoqnq4pYBY^9q$Z!K>EYM@t(E&y)&An3ynQZpY$op zTU}_hgCV#!G9m$HkvbysbxZ{WK_ceJf5j10=J-%;I5 zTdMbJYno>0y;df@CMhGlrszj){u@gFR8mL6Wz0X&G}93ckfTQ~%HhO?s3h#A-y*sQ z`{Q(mwof3$QN-HU7zP(D1oQJ*5QjeKA*GC{myoX(ZkxI!Lz28H$-~=kz z8t9Y0E#V$!{|itIVG{jyL!)t9D;*G9p;eWT>1OMrT6j}GiidB%g-;$(g&Ht6$DXAX zpkwyAw8FN6u^rd(i@!-Gi~B-vKtTRng5vvpTId zSm18P>Bors#?KY7mX4N8_jsv}#U3Ijut_w5=4mNVO!63;qjQB;a@M5Tdi!=tK8nQN z7oN*cMCgOAnj?j(tM)xAwx{C#Ni}T6m z0^I;#EUhE&F@}oKt@Ie^)M#&M!q`aG%X!avFUA03PcoDv`)7UN8=L<~-<+E!A$!WJ)feXx!anHmm*P zcGmxNkgAVbbHHIFbYv2%V=tRhF1s8f!Ncog%dl9tuDX@d23A9cH3=V-#Ad6UZ};WB z8!eFO4>G0zHSO@>Ds-k=M@3(Bk#MjIf%4-f1h^80&Kd;hroSjBTKCY?boVvFy_=#_ z`Aj-vx!FErxemukpPT@KAAtfL^ld+?!PGq^^bPuAJ7onZ;Dk9Z!8;Cld-gWL3%^P- z#EiHIY%E3r?t zrI$`X2o5dB!?*|#DbCH?66M)RFu}2$t)Qo+GU$}3{7!T)d0}%bx{1$-yM=Q~XGJ6K zXO|=`KZXK7)&U&h$ErVwIMgWbM@dy*?dR)##Cd2p=7bqsLh=vBkJFsspVyh^gvrZ0 zSO7P5##sh0DJ)ajk!31=fMv=%W0@0^SVqEKgk|0@iHyh!^CLM1`~i-k`DwEaMiXb7Q`+9{$Ts!fqfd!WY_W;v7gTJoD7qTa&aZ&VI_DIxGqm-n#vTW zc`to)7@KwJ9j=HqG%yhUG zBFZsEogAOHwm7e`IB#t$@npRY>RSR8>GG+B2 zsjJIu-kF*W6*y)bJb$vOjQ8_FIb9&=2endm;b^@LHR{ z#9c`!3x5(9_^JhM$>?$jU^WGC75FkqGNLboUBC=^?}8no9`zA@kUWI;pnV;uFj^xc zFx6{aoZtorRuqnAO0^(YFOI91x4pplf2Eox;;JK*iOAK+F>#a|jBHBcEQ#qMhGBO$ zTYm9JDC)$vaiXqEnvMH|N382?=ezqK9kRwdSr7EF7jY5yU2_>>1#DOocFQ#WM_gJO zosOMBM@J|0v&1XDP9aJO5mpuou2=i6An$08jU@dL-**Rojn?G&4D=z{5J|V1Ag)#w89hGnLZ*t=n;SR9#1zK zAJ!Lul9r*Op0OwPu=QpY7~)GXv$cY6Ysl6S_v}&jBK`B3tRWn$7U{b+@-?I*zDUQp zC=6^9ZT?b*h}pks~?ZtWZVMyY@i0U{6}#^{1nCHUSo%b)i2DDgTDu8L*mBxKhAkk63@vR+#rSIfdR^ zr1`MIsQ!67D0t%*?HkTe9iRz74sxTFU^lb>fJ`#AP5H$`Eu>`#qw}MZwl~X$z6m(4 zp8)Cncx>dfeud%g5c+=o3gIBH-Jd?okBn#_{RW@DrV+GgD`{(@%qg3&Wa}=%HDL9* zC26!FKf+y&SX$sRo9JmMi(6}BSZ6es8Q;d%6t?{}7IL~uZZY9Q{neqdJPG^&3YD3ct|7e*On$3BEv8w>!X<16PJvHuD!o&dqOPZl>1DyC9pNc z&egZ>60b`wci4Dbn#_`q^L_qM(|2?hK-GMzr@>$J^AZDBHb1)$=ZIXjux3MpSi0_D z3v{50Cxhdt2R5|Q^}5zNRMbKvP$Gc%TywB%B)AOAf!0x4XqZZ!7#Zv;)Ry)x;bpzy z2r9s{q=j*r9ERNtZ*kt1l6`xqaI$oq>DIyOqJ6BpW)MnS^C6FJo`TK6Qh{7sdhrCk zZ7l#@uctNX*y@98-gfq+oBjXn5eGTk+HjD=Cq$8kz|Me?6v92n*2t@Y?2qC0`~U#x zMvGi`p-1kzoy-nX0YhsAfU_>euzvnP(y(R)kP^Pr9#S-if*iTaM_l9c$=TA?X=gH1igue&p7}{1~Jqf(S({|Sfzo1@VIF3k!*v5r3GjsDe%WsQ^eV8$ZdxDEqjC(-UGq2FoEm#I&8dr6A0y#XL(HiP zF{cno1?=R;?&rJ%DmPm@5o|}aRm328Jo&zn2{>jyl`O*zmOa+1b`np5**iEn){~Nm zBcz+GhvaonbOTrd^!0?+dKz?3)Q?Xr$n)@kx_J2JBy}N2W?uSKnChgn!A&pQrkQY5 zJAM+MP`mX9W>juaf+OH|@C2uFSfCo6X)sib&2bYsav|6wh_McRn?{<~8cUpmVRA8- zVx_(%b?t&PCEzrmTbRHR@uN{Ew!Lj#?0&2EEI@lP5aBGA@Jzr9dvcTVXW5tjaScF! z)?z**>M1G~lR4unY8a-%0rDv^C>LL3KM5bm>=Ykm>RdO!c6-d9r z8!(Vs2JywTjtdLXh zs!Po~2N4l0V|5z})BCh+>;;Yv7F>qjIGhvAT!26n1m(98s2bs#uZ%Iv>5whPn6(nlhd)X01di$rh>IUx%TrXrM&tnxa8f7#B#$ z@)6xrY5*!{grpAk;EI}&92O+AetVPziINmlI9LGt0G0ssV?}fuv=TuZ#LE=9R25+oF_C-)gX%W;hyZ|vp`Gv!I^zKNu!ZdE(R08RPM#bDDl@)_mccX;Jpx@Z6t;EmY+QX4Jc^ce zCD^?Zp17+$$os&9Q_@kyb!tmSc@}r8?hPEnkKyMfwlMog`AYB;0bUxSqC4wWQI*1D zY;%Tk_pLx$>|K~`{t1|?5ZHwqB1XZJVgI08q_9PBV3ppesL_b>4)T(vz#oeQB9DtA zrXCy%=RU?Tow{&$ApKhCLUq4MS>#GlfA^yu84L#Uv7{_QO0*S5Z`+3GEIh0pYdO1N z;(Ksh(!>YHA@0N6DHGr6zra+|h=}*Z{2}(!c9enr9^Cv1`XUhpTdP~dA@S~>wvgAHRN{XB3sV3m>K zDQs)TncMW48}x$J)#sS~vk&@cbYx*t9EF=hvd}6z!R9rVMn{^1-I6UU#G?`S;$b#! z9fntFUju9)6VQg#^%5q63S%F^n3%_xR|y)F+9g1a<^MSb&0n7AbpB-g<2Z~RW({p% zOg<1?iPEAs*ACJW2G>PVSmQph^#ct%ACxlo`>~&qFrjgY#OK!f(*ec<@g7s~J^Lc` z2h)MUZs-qx+`XT-<15lDi2xWBY!tFZ2{C#D5?TLqol9+Hz4@691V8=k+XqbGH*L>n zzxO8D2OQrp^al-xd6oUiV6t=rp7kp~XERI+t@5t4j%4Lk1X_V$-$%I8`To)Ojf7~` zcC?>l|Mln0v-e+lt`W*p?cdX5iVucR%!Oj{#?F^5@+MqJzuzs zgNy0|F_{qWG#;y)&CtKyfKwYAj$;@$6)tkYj`aj@3uBzR0R*^^p}}!T{7E2w7ADco zYQ^{Vuoqkb?*vx>5zGf-@HrP^eU~k9+_g8S33LJo= zECbhOVvX1@oxh!u&IMC*bPUy<(G>d{+vaeCMBJ;=I)WQ<*Zw9+-iJa)tT+EI@?Lx@ zSf9?N6#moZ|C%)Df<8sev+0wsNTTS&+Zz;pwEFqzL}-MoI}yfU(_Pp zfE6XXB-EoA`8t<9a#ls(DOLYHs8!OQT1R#TGk)>;SM5nQ@LeI3Z5-rw+rnqRJ4QeL%!g(#0?2twm`%_u|@2?4kD&^CM;cx*yEs_ zx6SwOAYzEk$;c1G;j*M({-H$dGR`^e^hm@#cwu{bUHy*GYuCx3*CjtduLll6uXB^= zb!IZXO5*g=>J3NUE>5P|ng0`-{m(@15fEU9vg$G+9R+3D=v8rHbm`*O4NTY04-|b}{a!c?qS*_x z-{0tl$>qiT_78gC$3}vukZ~cR@H)suh1ILa@|~BswgkVNzyg@I00nonB*Lc(MlgcH zXlpPiA4Ra7347=y&~YF|y!cSKm9P?~^Ow-hKH%##<337X33Iue(W@An2Rj00_W(@$T2$fh359ulrP%CKY-SY~?5JLj&GUiZVH-W`yJE9v zvFR!vD-y5sz|@mNWUK8 zZqO!!^6jv#0~kfSIEyGxz9JL^JE1@YB0)kAF~Pjq!zBUn8z@*){T{*v5A)}@RKG<# zBOlR;4pIUI8-q9zjit5P!!$;y%?>MoU##R}DGL#QNAm?POWAXgRk$<~%&y|^!N~rW zqHexJU3f0LqAmknU@i4&!6J@MNAMBbjg0d+0iqH2Ijz3V$d71-?;%8t@Z(k4iLSM0 zH=)B`U9c0$IS@=0ZRxz#xiH9^KFvVvj|Ndd4CIU1wL~IN1>j&BgWEmUnR*-{!9ORu z22vP8^dorsn$EjNMB`oUHUACDLv0O*+Ssa&3AWQ0<%iH0+%0hQ#qMN%;X)-xUtFG~ zFCebT`r<7PzB7FxOS1n9eNo;{U+ftjMoC*KD{^(ttpz*&z ze{`hwA@xWe4dsY?-#3S32k4W}ZGFNETM|Oui9YEFfJ_rZ(aXI*(94h0FYk_uBP{rI z0+eL^^5bNn+o8dUxL+{Z>zlR>Vy4s_2YvI)PW6q8I;D$v`PC2}s1>z_Q)eYbn(ct+ z)b(veyD1aqgpV^zc^3hz?}HtqSZg9+wW$Or6K7S1yJ0)MAEtL+pO5X`Pq2+xhA13_ zq;4sVOt`~i9#I4@Qbke0jv(CRTVih@R&G4}M9uWdorhSFoW%(0+<`VjI}bFB!a6uW zb87}B#t@>=c{yQZ!Wo#Kc!(+JMigVLUN_I@#)?*dG-b%_3p+|%a*Ms|$9cH~;r*@g zy^4~}G5FgqMxg9t0XVa`_ZP&-aWH`EeCv@96}LGfABV8Z_3buzh9cf*7W#yb{uvR; z#5sX&diwcZiLjIlV6>&@r-oO`p7PdDrxom+P(f zs24LopvLb-PjG??+g6HvRQv?;@gaP{9oNgemb@$Z*qtmNtMI`QVYd61$j2_qM+O>o z9OlyY>80IlRm&J041cp8&U0Pu&CrRY(F6;eLSB_igM3)@T47ObH}ibi(GTIysS z{5UQ}eaAUc^m3y}(Gf!+MSoFJlyE_{vv2n*dFpgM{A#jIyO0GTPgR}DQ>UvmOgTUj zF0txj$}zyK(an_8wl$pOwNMMVOM)5uol%^>Id}x;o?Td*SN{W{0=m%}d#eQ8f;9y8 zIWcz(z~bw2{I~a43U&vvow6f<1?3;rnOe*&@iq1SAhvn9h~UDS8^K=PVE8u|)@#m; z+XVdm2|4s9ryj8MVzh&w@nE@-Gi+0nm{2NcN$xlm7Uid(^|1aPPbc;|eqh{_;A;-2 zalIr598SYv)d7c&t8oYvPbO@I$RFW|JlxfQ1+vAcytw3Fk}Ub>+mcU*6ZU+0FyU3a zN{ra%-D4vsPQ?WIOrT(wnjEVVljFRNq2&-4(tc5n90A;$U z0a(gw#F>P%F;R8Y2uWuWwrHUlv>@R}A0Gzzt<(fX4ZY!Y5l&koqSA%LVJ$nPi)yClNkSA)kZ>_Ap~5=GiaoU+Dn~r3Biw8$ises(^#sx`8PEZ;GiO z4({@a6mgyv{ZQlRhg<@GldT`hIm^z2p(<=7`r)kc?e)W-aZFP5!%sS7{l>|9?}NC0 zNH25r!vkOtoWT3)DCmdJl@;2hevqYp$Nh!>H}NxmLVPg@k^nc!pB^d7-l^he4p3Ls z?Or6D@{9_NiKwR?%TmGknbaT}o~e+C8~p4aT@#B@n?59G%NKK9i=KWaWxP}PvJ$xukTbxJztrZ@MDM!4Km?+V`A_5?d&Qdq>E+lfMq*iH67<;Q?CB+; z6*&@1ie}5vA%d*K%h4zWOrlMrz3~MT8Tr%3qjW}D+K1wDjC=xskeWRJ2f(Vkug(~d z7Tbo19t6s)WEFIi!$|L85_H2pbd;WsKHfkdXQ6U&-si=U>TU>Z8Gy~|&k^vApqN_J zEou4~*8Ys_TtudvSXmM}hzi6NA}UU-2s1Y3M7Rk)fEZ_cm^Qu8>}5cLM>C4%L`V>3 zM~ac!guf2vCk2H{D5Fw-euz(eOqb0lgD?21ij!o?h2!-!#4}2oBAKn1F(zX@)ipv= zoZG<|k_*|?X^8pd;6I_j5`lqQBFywTZTpL@8YCPTks>Enl&&c{u@b{lBAA0eBL9ZNdB!^w z_Z(-WhZ>39*Cg~M{4)lVVM~d5hF;&s+kA)u#N_fI0fOj0L!gIRH+I8H&K%>nZ&W)&(yFAwfRT7(BeC8+0s8nrC>&HHU_v3IqlV=#rTgCI2HXQi+)+XOTwepOM<@Zj$2fuv&fgJ8uK?#md6wZ;n*eTbqSnDXm|sPn zM|)uiZR?}=!J4r?d(zf>x8)|OL~1S>LVwyYz$e&}?4{cokus`~#peTMtg|F`tn zdxy|xyu0w9)n|HpeRc{OP3W^wsy_3?_1PuJ=v<$jfd+m+pS{?XKHJxYK4V-o)f@D4 z_c7*Ns<}^loZFCncEFsL3w1a(djLZ6YpeSJq~lI_*XM$k)#`sOwWgjpz05qNj6R4i zblx1DV$zk)gG~KPbsj_HL=Tr>AHY$*)~`kr1~toxZd3;$xC_^rf?R@&9|$r+>7e<4 zKtbxZg6vE=s~&%ZYPS0A3x zsh#)9`0C0|P$Q%d3k8iiLB0!>sIU|MrVm`ZG`%&f~~m9i@<6XRUJSE zQd6R;-&Rr8r;BneqOpibRy%xpYPKJp+yY~94Q#*1pj@$ZirkC<>Jiw}-U0&@rs6m3 zt!Wpwcd^+Nh|KL*$p~zOVZRS`(+{RC_E5ub184li0C7n{pdZYu4|)_goOT#Ls>)!q zc^DTRFfQ`orw^Onf}-W+3U{-bk;iCe7Q`AVZc{R-c;G0?kF8&)+cu?bMTYQWA~YQx z@?qOo$A&q)FbL?%Vpa{S;<$(`^%cF14UDa=V9+P2OnnKf5@=AN&recS856q(47;HeB%qY5@mn6$V7=XMg69uNy3XSSeXE!UzP3_xk8Cfp`rQ&0Ez+I zf#yI33Xx*8hNBMvz)qu(voS|GQONQ5V(mV7#DM~a7pw7i(Nzi-RDaQLpd>p+@D89E ziFM6oI7R;yhsGZ{5_S3m;k%27nz~h#)b`=K>2Fb){&4uNiG_E^fh18nB1CwIynM89^mS@ugVGCNNrYz&b_7Z3NH~*({&Z{D zDImf2L`u2U4=M1v#9p+^R9M~YlzI3G-|ktw0u?Jb3|DaBwLWBRG={As9QCue`SF1h zTBC#(%4LPH;x1^xwxGWpj~0S>7a{71O$tdm#rti^C4g<4GUdd3zTkASFo)fSAV%ON z-tXOE<9+(69q~SO)1mQRr1HDOd$!8&i1&+uj5yx^lncBw9L`QDw;n=DD&Fs~Q{a|{p|-p&+Fts|JyY zatGo@hh3~IC23o1G3vIyWjpyO+t%{Mw*J|blKi-n{P5HywKN31TUS3PYH3$@(B`^! z=AIKj?%_dHFqzlHEi~AX%sTZ_uRe6W?108H1Cevn^t1y=z!eICNYQq0naLxt!2x9^ zV#PLBzgLDIqbe!*vihw6NaT~>dGisWE8FQmiK|FC|A_(_@jD95S__qUT5>m@Apdp! zcttU$O&k!#o!S zD~4Z`5Q9SKnTL5`KqK2xwRAZSqtq+QAMgkctGIzZ<+yk2&>%Aof zjloQi4qGk@u;n(&vl52}lKv&=6^Z|TlAPK5f!|L8L}1S<0ShJ})H-lA=AJktFjR_dAVdjF6{UH|zDxwFptKg)27`~td=7nrqne-=S=(z4_N>E34eWNh zRe*E+R%E0GG;$8DI(M)M=}BEiJaES?M=y9^i(G@T1k6$xyyN|Wf^AxeM=+^QeF3n6 zvcpie&@5`r5U>nz*6(ctMW)h9q8G3!$D-M99q2B|uhLmI`n-cbOgOayBgS;<%kfm1 zr|qd0rkFyjR6Qn@p0ou1OBx{m0j1zS@S6SW+^}FbS|%9?neM*7x9#D5~kGnCR|Ik+6SCq zsCQ>_Ebj6)C`sb-S26;sQRLewWq36rX?dfMnSozIN3~`012WWm!dJHJ3xz>->IBYM zdcnTAYZ#YZuzTH6S9Ad0Y#o`Xy-P|Br!a1_uptgDi`sQ~WyJC-_lhpRFNBgKg1FfQc&{b3mTDC0$ zWqB+cM6%hIhtI~cU4jhYC--`-yi-&$fkI~mfG*21HXY&}Acq5t=$r(1wuk3RzyrRJ zql^4QcuWt72R3pKT@O|OQUS2A2^LNqr4LQxUVr>FB$gTir$Pu}cj5QS9N5VmW>3Qt zTW&4D@1Ml#1?8#uxVn@6X}s7FJc5bikPy%)C(y|d+?)ad1I+=$%T_vJs7s}XHou+? zbi{$!ZZ;4{9TEuXoW@NG1@|6BxUe)3j4DeI+|8(k11ltI0X1-KOH1tc)_)xfY52yv z0=w4HOOr{}5ntMTy1qJvH;%Jw*ZK~Dv(CXiw-az7^q2(zGSr6GbQclq#%g@w!kHHS zsQV^sC*t&CUs_M?2ju*<3j&-<-|ITU3MHrPV(2Wn|Lt2G+d9iuETUfIAXXRe%lnhQ28^U^e~5jbqN^Y z#ko&W(@BcRWj!3@)MQU36?`k_NGb_JE);n_E}ezgg+Y24QbQhf=2DdLu{}_MuD3}4 z3C*@m@zbGX9+?0GoN(xrJN`AWUZjRb0VI+Y=#*RIw~Ydi%C?OHzikvW#eh_r0}mVn zuEI_CO>8#Dx&xo|2)&Le=$JQ>r}3S?k!idDL5tCk>}k9me&%;g&xwQ#6Gak!(yUwK z$M1o`A0ToU#Ofm1y6;a1MU8zDUSl6v`@R8aGX=C1{LQ`s z@PMWX`^Viooem3hkLdh#?xoBgzJg9=x@J>SQ#EnJN|AcN6l+|cHyDMi?Q*1b=p0i|yLf+P>j ziQp$|*|W$19sD{-V_n0qi2FC+s*4`PH|S=ud+lOq6U9!2ZwAFq{647|r!rL^t)W*G z>#d6YsV%8kPZk?xw+3>c*taNV)xw8oU8|t{`C&;=_GX1g9}?*}`fJek30peo526sm zZ-vNfG_?u8@(4Wb0^yD#UIuCl@q-t^_XG{%mh+-5SHkC$!XMiFr5)&#C}57uHUA3^ z8?N>5oP}rGN<+T$8p#v+%aP<_r$_9U4v0z znOK=N2cE;lfq6@AiP4O$!h^bTw;Y%;&x0;oi&+^L9yPLuUfRMY+&*zBBCfPoK5)%! zhNvKWkHCSUYp;Ch(&jw}cyvTvh1Mev_ntH-14l~%fTLqD{GPcuIeBRsejsFS9)-;p zoek+J)Lz-?n)NtMVSN1`(#{0F%Hrz(3CY8v#2b((SfUrj8eD^d5=EO>v`;iqK&!Y^ zu_~gaEkc60pouquT(4JgU#iyD+G^`oZP~Oo0S${=02c(Sh)bW#wTfCd0w|L}E2u}t6EAU?+GBm$sRQJS#F#^$R|t=%;; zuf7@B>=ovY$cn}R}VgFc}PyKSPWLm*Js@pHySw2kgLMXmz<0TO&dZMJm?=b%h${!N#0 z2fVT4muqcU*Uqik*^e_j|I^f5j#dPLE!nijh~_?8hrn&0pyOiQ^?hXa4<+(lbUyUW z5B=MCWx$2YP#fO|loP!;Zkowd=c6$OVmi}LY}j3_PQ?nWh_!R%*5(G>C3Py5IJUI4 zu83+dPrT#5(M>LLrqqs1kCmX--F|0Iu=`a4=#_-2^t_H0j^GzKlO=~#26#V_C)?ur zPOv0)3@#bLUwWkz@PV8%P67I^BV0HJCB0L}WHG83G=u-zSPlvQR-BcztCHSy!~FP< z;o(2JiR+6H59?wIY=eQ(Ea4mnWx(2zrBr0uHFB$+1-VW%hic`bp-j73S4uiNsTBRX zgGzfsrGys=KXf6?_6 zBcU-~gH$eknGv3`72OQk0d!_*Yb<17apPA)&8{ifg#$aqy{o;2`tc z_fD}A=09uvi+wWe{L8+Y5W85Tjx03Gp+v1yspKYWOz7%)(uan-aH-+b| zw_p-{$9*r6`QFPTi*qK$wiZSjuO?sc0)sCuITqjgmNSoegw)9V!N*o5y$Vd|iugUt z)?o5*+Hr0(zc(uZ_~S|!;CWX zv_-u*w)L9GjbED5k-lkJU*azk5u5qn@6%=+Uyu{ci8kni$cQmLbU*DYVZHjNd_x{= zz50&`Or-ICfl6|wAlG6aw3l{qbX<$wV|VrCU*_OMUX+0-e6)(9EB`)d`m2Ykn+9tEnJY35kNWO4!mO*pbGVFiv{+9ihxf ztYXu*k25+!KzfV?0vMMf&b#az+9E5MQYE!vAE=F?y-icUUJ> z73Ee%y$TMdV9?8<`Q9m6Xzrr|$IK1Y=R-GTB@s@N6YOJ2K^687bq(*ImEK?J)2%M= zz(=FTk>D15@??ByXjaDEmGJ~J28|9((V(nUQ+ChXXnNv=(A_7nyfxz}KY1PfpipOX%bre-7{p;+`hnU?2hJ6^B*W?4SiH*mdAT)c5E;6SFHce^kDC1#^SX`eIIT zE2uejt{OVZ6f*QMvPeIX0xmiP+?Go=oa``>W{or)pk9gv#<+Bol_+bgwSkxsxn3Xa zES{!%wT|9wq)n|?mrmSeG%Q;ZnPXapX&&B?(acG=`orGwljpYk|LmmdSC<`02}jDc ze*Kq_Fn2n;x2z7|GflX!DZ+TYa%EMUo+Gt|e$D7FMnK-=3Yv71+5+~eiPjEK;5wtE zmwR@W9PUS5!S&ahuzBwxY&!3}n|zIS@- z>;nRXc!&PEpx3+352?Dyl^D}v?dA{qZKp03E<#SI{|stf6N$CDm&t6w<#?+zIHfT! zGXIQ;?Mo)b&j6Lr{lw*D+LgGk6A~=7V3DzU)5v)HUSl?!^1#Um)?{R2huiZ&$ z#oN!-Z!-K{+RU4Y1eVu{f0W~=N2KAWDnWqA{Yq1JU5)E3QMBbDRwY)|oUGu4hb(D% z4LdR`xjsyN#QM9p(^FA{$9>$kW^bhL3}3L?>z@-cOBTu;NH0zlt$0v?BMlc)4LxK) zI3Yh1OW-%nRuLCGmy_rxZecQ>BfBK-o+x(xF0NQ+9zV9U{n{MmN{lUS$Vprq06~V_ z1qR^QvD7fa)ljx6(r_4Gms%c*WSJ#qhy2ZvAW`RRk!QkYbHw?LjNk-a|Ad`L&2<%# z+Ym!Vv7<52VCc;;vc#o>CueTCm~&rG0{!JEcmiXA+g=MJu|M)um0&a9mR8_lIB{u2 zPGzj6S7q$ot<}i^!@0b$@Un}l5)(M>bY0CkCnoz2s)}>?eS3M-Ax)`Hq@DjSIlVpp zqzE8S5uTs9&E(-^7A&xG=lLOUM@EZ`t89LN$=K?|IBqU^W^KhY<>aW2jCqT_0_Bn9 z@;u%W=asUheQL;YMPiRM8_uo0hD1Y;xt3b4Y$n@26GeFu+7e; zGis4o#v&93`{0jBeSu=6sVA>x5v6Qf?PUu~say@< zq981k3|kPd-uj9SrBSD3nA)AW_7b3)USfqEVuwi54fpa{{TQ}_DJ_SxDnzv2Z!7Kb*VF5`vLzj_N{posqvRsw(9tJ*SWYvidV9fpTZAe&pj6~x zq$R+WN?|rRSEPxD&+v#mG6?R?YKTGEqBJynL~k-5~sG6R1=4aCVH>pALZmn z6Maw_`x;HO9|%+@E zlD$-^zLbN{9zRv?)*(373yy7r9Ff?;#>S#&N*%}gr7EpIj^RvbrJvs1WeXlg&asa< z({ZYw?Cf!zvEsHtH8l*aqudyN>-qJum3`@~rtoE|=ny>ix-%?&I({h#0NnW6pirh$~D+N*^I0$?q`$xN!brY&&{4%+JyAJy3lsa+mdC6Mrddd%Ow5m znk-|{oT8I0DR>v+q(&no8Q+_JJ4PQXV4m@tJ*>-w>+ z5H|7FKe(r7#$089Izw4YP;>B1u5+7K)~SAdqW1*9WJ(20hC~e-d=YG+T%w|d#8)eG z_=>7igJOz`NP3TL$|9jTY07aWnq_{=4oUl3QgGjEkWgbu2MN2-Z^qGGmoHQ^1T@5~ z)ijo!2MhkIj%s$RX2c*B1u5EsTj;aTJoHB}gst+oeD23TOE3HmI?eqqC`s>w zyTibdq_;=U%)vMJ*IIAdwi+hszUm$6cYIg+1;<$9L_}wSClH{F_#nc@K1o#Y_d_L? z9aO!YD$;-05&jPR@kVSJOmBfh`%o3|dIOHyIv`aEQWk$e5FQ@LsT=%H{z4qoIXS%| zH;krd%0TPY$-zWrY2v0R-xGJ~*4X%6dXB%|vZ3Gb&*E+!!T zOS12t_3uKNJnjlSz4dH3en``K;en-n>?ZN|YGCQe^2VB{$*y2IsP;mRM_+};c| z(G8F)#_b}J!o}$}PBrGnrd+?z=bg1pXy!0QS=&11Fk`oN6bojaFS&7jq?5X)4`ZT1 z*LZdr!hG#CgoPyA$p`9B37sSLCpVCxl+bGGkf10JnPYwE7a=Er^bI{LKF1M~k6&@) zmwlfoF`+ARmS(W;N@QBTpltjGMrMciFPBSSkCMJdov2b8+t7requxB$CP{ngEjf+_ z4!kwv^-{krC(1}X$L{1q${<2)6+$A-J&<}jXUXj`5`i_oRDB#*KUU@}`*L@iC_z9- z!!LO!UZ{S_DEzb<9+7hH#z@u-Z`a^iBk7es5Tztk z31%Eg0u6zLGGgMn)}U97>J^UqL_H>m7GmVZuQg&<-J}Q3;k=vBT<&t7Bdm{OQD+Qs zB&sU6twL+pOj&Pl29}$$9v@CwjS)o`tdc3eQa%W|rjkX!`8`OnyUQ+*nb^q^KaTN6 zGkXWyjzTviy=lq_6CDGr88^~t^;()n9^+3q{$Kg`p+A$U#|V#9kx>LuQ7<ZlIuH47CLjF|OsCLUkZ%kJ@1EPDn#gjzk-8S9h^^sG zLl`6{wO8nSlqapr7Ccaj=~1?9I=ia`BF6PO%t~*wuWi#e^8D~YpdbZ+gR{P>8W!H8#=1m9yU8^)t; zX9)H>S8WfLt*3!HpA{8DW3r4ZBzDIMv5!-UaGKrJp_*%s?8vj@oL7<@&Udq%FSOGc zIf?q-z-Vl~<{2}_5UXb&$fzduanZ^2Q&dmok_N;kqlx9bx*~cMzJ3O3b zb$@9;N+h$G4l~?Fc3v!x((mtoWXqE;{Lx-orK$p;pC}G%X4;Y$$g5Kghac({{P-?%s$en$YiCn`+ zAe>F1NTZEr@MZ!AaPMh95q-w`Th_`Q6Wh=$<3x3P0JR>cqeGMV+yX)Cs&ZFU2~~6U z;9XT~3xj+5x;mh@6C_6kL7t$jg~3`j2|)Q}bA{B7ln+}^`LOjN#i7GkeKR5f3Xup7 z;k@?rv)Wo&ZmdnY4XU)KV|x{>)T`}nYg>j<@dEuQtAloB0C*i@c-633EEM7k-9>!0 zr|C<%j+mLgpMb(2NtAU`_$-VHgKvn^@8r>UW}CrMih)c2-Tge~e*WZs?(akp{AlbH z+KzyXRWgI4+a{_lxi{pB;aIcs3%?`&!UaDvulV8{A@4djHcV8=T;%bV$h@L)`n;<4 z2w^taHQ@T8bz!-%4Q1AbF_PcRmR40Adu{?dK8@7hUH0CcG7Y;|gZ)ICC*flqZjV53;WmJ$pL{d+qQg%2$UhF%`pnsxs1})s(EiQmz#}1Xz z2T|J*5=s@&u{NG1bUT|}P$1M7j=LG#H+bF_aFB@Xxl5=Iqu`uAVe?k@dXfVe$MBr5k0DELDOqk2oqW1PR~`Y508jN&rz>n)BX zyxZF6EPIU975V!QGWN`ZPbUYL#9Z%U%YQC=y%OEnipMviD_LIRJ_sf@b zYwzhh=re1tR-$ko<3(N_Y3QRotbELgSYOcXD~YM)e&m_W|11}|B4f6sj}&7E`Xan; zLFc7+aH;82)ApQ36M1HNCOZ+30up~&IHGO0muvsv3H1GUo7pTd?I}M#0iJRKr(`EH z29G|J?cLL-RB?4Dx2@w{44ijydG(NGRdIbh_0U{@%VIfGxh9BfgfQZ11}^e!IJ_cI zs@IU+2(lWlo(qS6^qJDo#L;x~x8XtVY;fG*m>ryB%dS3i7tFMlC2-~XuIfuMXFOpX{CWb4A`^>dxO=7VpT1^b=pICdiprwq`m8b6?`mw_0pQg|e1uY$Yz*+mKi}{ZIv@CcLkPs&cs%S1Gy z>0oedLtch!QAovRRMyKZyVS;t8k=rC{Z5wqZWm}Ae9Dwmy#WzImECfcWqWLWRyK2# zt_ZW4Km}7=wqG@8WfRAO2f}QH2JJYP?S|}Z%%O9FtH>72cPL$PK-LUrZ>4^GiAmN) z9F~+?Y?9TDep-%2#E_UNj4#j+J>YHHN9?g!pT$f6d?6#gq$N z|GFOub7weGtp!@!Au7t`e_yj zbGQE%5W!ldW(rADqG{*WsbL^NcjjVcBsUry>Yz+-$%5hukuyR>Mwujib-Cet@tUk` zSj0KOp<%YDWqZ|SJL0vhY?zWc!Omeex*SsesLM8ZhivcDUSaJzgXZVK5TrEd8@6U5 zS}W4c{`c!pM5cL?PnTo?A!@-;r5gITkOmUkBbfUn6KSox1+TNp4T?ABWuZ7o)cA(lf>8iXok91i zO3bd~YgO42oB@rSQ^zx}Vjb-G3o7ci<}&-@(_wt#B!1Jpm-xfJip)pbu4UXkGBWR^ zN&f1Mrh(i2Azz|_{b5o)`&grIT(zai-t$3F_+KdGTk4s$xGQ{^5a~ zouW@oe&V#rvMmT`QAKGgsvgu_HDn1#lOBII_v$Pm;Ub1f!(d(IkToo|wfVUqvbu`v zWHejiFdtnN^B=TG#&4i)3B#Zf2P1i>%*djTeA~ejQ2Mu(pZO%U{3IZ1~-A4D3yUTu<;-e=zEm;-~)q`A;N%;lb& zC_cWq$m-KP*p3|emb#>~GIeQ;&(!tM|4`TLZgpj9)$t$cJBBZ3AD2ZDXQQ*zo>IJ! zV~LqENB6MzFC#JM**LoY5B4I6#mnPIS1BnXiE$d$T}GZwAXJ$cfbFrWhMV@T7+6`h zZF=u2mY8b|+M+sZ$+qbqvHpBP9bqW%!Jmvr7e8)dQ5!jAY_Z*xTUwHL%g2KQevE^(bkNV=DN4igE0ZU{(N80>yZOLTn*&+nj<>8% zYx~{wvJ;csf7zod@mqtO_(5g-2bD{IEFU9$aUWw#7+&p>YG|!= z>H90&mm%$UDLkhXP9Lbl#YUOC9o2VjiETVN5dR+n%eW~~#SY|jcyehO}wQ#L%JD@t@{Y z$1m(%l`t}K6h8-=+hbMYPr|#p?A1=Z?{#?Jt~1YtcZu*W&)~g+_yRC2>A?GJb-8Th z%R}TTo&HNF@c#Z)+ec*e^AhM8H2z#kbZh!^x%#tP4CvM;=Q^H4l!hK|iZoHN zubKh01U+S~K8;-EtmfFXC!ILd$e_Clb&$Ii+V%32K0?;4PZJ1uiNw&nOsgY}XYgB< zEYGbV>|&u{a6xu{Z~PfO{ba?c^is2eB_Rz{%jxrOSbpb;p zbs(<}F}fw^N-ePNE&j$>7czc#F&<^_NT=>*8mYG$J5}LVjfX;XH}fx#G~NY=BJ&DP zxf(r=qoj^klwx%FDt2RXi~C~AO{J53HvQbp1Z{j|-XOMzThF%L#8HHsFk8)UZNyIY z?IEI0WHE-IB@SgV9}u4Lwc!?g1{cfBbeepF(|2-Hx^>NrotiNd&5Woy&pAF(>Ys(!_H@{W0^1EF1|&%L$IN zB=iRwBin!4UtM*F_<(ZuS4P?RM4*Sw^2SXT2{HRr-bH6QF z75_{m3~ql4Luw^m(fl{KM7H*>-ABkpO*)7&kI-LY?`>)tL~qL10%+OdX&+&Qm@^4m z1=XV?7fy=IJ8Dew_}t3)a$V}SsF0RbtlkjY7CmlI^KnDkDz>y$4B0xSDX%hF$tL!t z8kj5Mn<|qdFbX#LEg$#b3c@^p7;zL^t601$TRH7fv_j`UM={~I_m23z5b1_rr#}kj zXl|Z2eBJQP>3#jgOl};>KMM6;mHaW`I-`%ON*1i&xmctA=rTWddlhQ8?1gEsYl>;E z@+GnuYer!7;i?^++mOeAKnqreBTVv?_91PNdCjb_-US#E3&Ra(tk1(wK6#qi$;gQ zep$#d=S;+zD*RaC)+oqRd97mODJ-4Lk(rU0wy;$tPV8+_iLq^EkvVM`zm@UNjvK!2 zxZ&@o_p46+qBj5zuZ(k2_?wlhKa{ttD!#3HP$kU7$J5mi=~Xy|S(SHk zvMR^|Y=s{`{Eu8txbyzG_m%mQBPyGK0X4xD2wp*tN>l>m5`%;jmJwhdeiY6*CIN z&ldG{=rN5rl+BK|7+gsZcH=!Zl(3fH@-gP$=12nz7BFEur@&uMl5Q-rP-YD|9Fkrc z`!G^j|FW4Hv9IzYbCRUHQy$9J%(z-^GG@oI)8|pUM)elyHjLdZfyOF zeHJ(MQ>PDy77XY3wkjfx)=+!;5rJw60Cnlte)}s6p(D^*zfPBM9Z2O;VpTZfyy?JW zFt!;Bmu`ownBG*eyuydz>C zJ~gJ#=5jHYmdC#8aarL4a|pz@95;M(YPnWMTY?@{$&0ryl%TO;y$XU<$qb5ro@!9K zWb$7?uhjV0_z86*`sRo?Q0(V>}J?_VNz8T&?MZ@nA>gkZ>NWNZ}SY^tiOiz7Ubc1w%Qh)82UWnrDIjyFFMMietIZ}?P{SE$o35WG&41{08+nF!`l ziu&^X_*&dU3>TWlaijtwRLPkq49iTHXa5dBlbF5`k&J}rMrP0E1EHXY*8A-*JWKUC zX=cuE`t>i=@!WLwh*AWP!H7=DIO!Sr93IG9b6OpiZ72D z*ukZBTtuE`8&7Lx{W2A1tI*(5Z~`Q^GHL$|QD>`|0m~c6LAc?&q5$Ez4&2^NIUeW@(yYlmu^`WgY6=!?SwD0isUcg|0)D zsCB`<%>U_kGoH)pceW_<)&(vbVoA2`>S%+o^@IGgt-#g8yTd(dyf6aRDi$q`a-zb1 zsxoRx!Cep0^=?I(sl#>aZx&{^!+z!oA-8(jFI+}weT+fzG~U-8PJ`Icf}+7!MyZv_ zL@@1jsY~pA=cy>MsKK1_$ei0u9yEzBTfv=$ytU@{_#G?$Gp341rdSFkCu2K+lgE}% z2C9}|vfh9kRVK6-pmY;@-Iu?s-4y^6h1g`tNI8>iU-3A@zR04h9Yi!>oH6d`GW$8) z{ruMb%p?Fb^`2%2Hb3v}#}5qG4@2v}M2cddyeNfO7Q>fw+?A%?En78{nKn*JqPFjt zrXF-R9gCJ`DA85p7z)c|D3DT>9N*40d)(KKs>o++4Qb2Gh*-*z5AE&8H}&mrrDKb? zrysGnt&qEsL)KV5IR@kwgnWI&FQM4YDt%egz=Ih1Fu~ zP|19(NtVeuQtRDbMB}G-VP+z{9iqg_Ex+tP;sKLnnjB-5(@M7a$^80`l6fk*7cT8C zO%j~1&E#r-p%Q})P;aH5(g=)&o$gsFjkFZ&dHO}PX1@-bO!56v^G$n+EN?LcLktXIXW!?@pk_0MFR($C(Aak$MKkV^60yb`V#Wz8uG#uvb-bT(7El z3P^iZ$JzJz-Zho+mvk#O9yi-zg|Yv3b)Qciliu$&?Pc9g-%;?>E(KrCE{JLNRdt`Y zI}37E)u(Q5@fmy;c_NL^@Fc+jh3fc{Gy<}|H}i(Qpazs6-pYsEln4H-qXvORCL!{VKPnH4UNGLMT}Ef)jng8vBY9q^QW&%KTzGcdB#twxQ5HTj~#ph;dd+BUC04sMozTqqIaq}DVaaqW?Rge zJ~i&WlG-jSFy5B_H?UHt(U_ByL;J8Vtn9L1fV?JXFIpp>?*Inrw^sKFs*-(~puG!q zn4nqskv5uD##xbKOc{)KyTQAB@lImw_?KVVzF7SGAaxXZtB0i=(?6rKYUB>G9T-Whl*{7{CIiL^BtWKT) zI-km3P9F>|{g}Km)2!@hS@n>O)qUEIYsw#5+5WORmiGI#KgTo{Ze1qXk{+R(SO+@@ z5Pd3)IDn8a4&gROMDbNka+ znObhSNmoG~ADK6}zsXjzQj^gx``=9J!(M6o;rgtpP7YSHPfAwxrwggwJ<`WoyJH(7 zCKrInaMiUPVehJhj1b5#4xx5>*1L$BXtB`IA`e;!#~DX_J1xwy5Y_-v8=!7wE@FbP ztVnGX*NGb0#JmGXL+T93fO<(Sgfc+OBU>DId$IE<8H8)PpcmTcCzTb2LG-z)$IT0CgaMcMy!KLh9YoR>Uf^bWXwJri>dY?xKCmJs4)7=rI_ z?{l_Z2!8!504Az+_Q|Eu>mg_K?u4KFSE1sUm|AW?3E>v z`O_zIj3wb%+aryS=qngP-jOf=0iu+BUX$PYIJ|-b~eZR5H>14G8 zr%G!ZsaZlD7n$z^ko&>dnJ~u4NQeTamls*(xSTOr%>%(!XWB zMM))*ew=CEDNmo=`~C71naz2*lK=9~B{RVxVASv3mhvOdE=NhT$@mk^5tH7p*A14Z z5>J?OeMkK`*kxu3LE&E`w1fX5 z4QcTjk3dOc`h;Y~_OjO6qU5FRn<9UmJ|R4;GSbL-ayd%AyuECDO)JhLEJsmB8&KA~ zo2fU+vCK$MNE&A4!By{P(uC8;f6Jc`FW(_Pkc~3McM0-hTkahe5zt;mU9JLjxE(` zF$S2}HGPiyENLgbb&b&+Wx!M6wNDhSY9}YWK|i-Zp`Wx?oS(~jK&iDVw%!(|B`Upx zCE@e{`M10C$fD7QzzU)O;itl*k%UpUPDVYqOo~EeXmH)$U?$l~|30|7Kng<7*9XVu zhtKZrmM#>Yv0h~m4CXD}DZIyfnKVJa9iUMggkTpAcn}#(LAb=oLk_ub zYsM)XvYYYz!xCPqa%jIIHyd(3mP#Q+hOEIZd7>FCPC0+2?qW$E3x#ZspOMc|?>Nw~ zh)<3o+`Uh?nn2zf=0~X(^p*vRK0q>JBg?^sxq#5rGH{@p>r8VP`NO5 zuUu~Nic-99eQ82)a4rgAhCU{}6>n$hzk#$XDCc57v|HtY_VaT*Z@m5GE{e2v#LRRX zFSd&wUB^$gj}cH!`t2Vb#-*+0=hHL%iIWtT{8^|zL2@n+-rcV@7X-+Vr&0KorXsa%0W-E-455qb@CuwX~9z6>GQe{|f z)HXfH641e_X{ zckrPw7{j*aj@N9>|1DZ;a)}9UJ%KoM@D;Z~vez;s>t+muN1X~XI!0A4WZ=%}0n>$h z;X+u2hM_&dp={ArzNkl}3^R}(r5begI= z_OBU?Ze475;F^$kP{IV%1B2j!mxNwMHiK7h#TI_j{8JEkimWRA0RRX%#DF9%y&^;` z+U@(zEPx82+q9NJvx~gVs02U!aZ>;ac;j?=224m#Nm5RKqbKY&7lP^?7;Lb;&?*(< zz=mKSA^f|p@;qbaj_}8}>SXM!g@){U9N)UubA{FO-F$QP3n$}Bh|aCIAT_^+`I&}? zzg^lNnLSU;-+=}by3!z+-!2j9z?lvykqTwa(Wa}cwZ7a%)?(ZGYNcH}9dJNLkUh7L zEJQu&y_4-eE|oZ(IyzJ(Prs6-Wo(8}W=X-5H`Bs{y0@@f`-aHO>k=Q5@GhJn+bz<# zQMxASZRAz$4Q~3ax~O;LO{fJ_a$i(^Y}9xmK?vUCh1*^YNbou@?wF2I!3v(; z{=xFSO@Wr#55U{9L#)iA`q(+dFPck{#Ta1S#-kZmAUiOzL;WPZXF${tJpW#sKE3u+ z@vo*DR=(gKk7@P($x}|Nw@^QDeEkjLy_9pZ;3_N61Uk7!Rb_;zRe`9TYoB)`Ck7~o%jz~W=d_&be9NLp??4}3R~?CD%Qvv9CMF#sedOS zz*6rme)NytReLFbo!=r+Fd3SFG*aRHoh+^1HK#ghIN9K!?YW`rFH!?iIx=arbcBsG zaDd*TlGNZSR$(O!h!vQ)X!PXK7XmL>FpuUuEaWC41z!T(I9Lw{Rbrw_P>c;Nsn^jL zNb`a5x91@E@nvz2?93!;sq|;0x2t>6OTOV5)8RlO3V);ZLn0!_Y%0O^OYAL@U8Tc_ zHiH|{vYSe)Wi&oP2{{WO6hJKqlR#clai@*jy&|?@uZp@a2Sgg@SgBJtjbaI9OrqF_ z49BV4ouTjX{$mnFBSo3y6$JdAy(xN}LfrSav@?6#`Gxv$hiK#-c8W+z9f+|}j}wRa zXTF^=pgB-~1_zDFJTmtrvk}o(t05M*s3wY*i(tvKTcUL7mQh?v5ryh4>OWeuYN3dG z7^R2Qvsfxzsx;>B>Z|YYbfi6P;i;6T)P1BYta~a~^q9~o3K@#gCFb6S4dtDw>Zm>{ zj_6h)J4XSM!4Jj7cVU=#rNt`IerTzk`Q?ItxooKAZ$e?K-lq};0yl%l>{DABf9B#U zt|q#V_o{eXYN;XhMrE9(a!1*;`aWRykK`BHj&alr^F&>Wc7KjRq29CW}?&Of}FAS|v;t z9X}qLs6+kdPJ!@dU#CGuEQ(iuNUz?bH{nqu=k& zUwsk(IZ9(aC3XJl8vQ2SZ^C;3nrbvYLYjru^gyX{-&{#41q5^EPu(_n@J&x;@Jr3U ze@!oJcb==hSbC&mLTGVjdYH!rD+ zG#qEu^tY(H*eH9sb?8<@imbQLgOxS*-d=TI?HXx(7~9onH%${6IEn7iNn4iW)I}O! zr!l;iPO^0^F59Efv;pOtTiMceJRqL+1u!{!w}xJk`RgnQ;|s%#@jiaf&^o1Zz;h$+ zOiG?GU~>xv2l2Ad3g)iFyE}i{q4gi??Ci+=@i?!(%>B%KTW>_>d@VIIjBB;$GlFx- z;oJI;Fd@HX`;Yt~Tm0N@!#A_Jq_`@P&r)71%EvD{A$e7V^A49+ZdqA1WH44KIL6PDcI=*Rm4y~CZ!ghupY zyT(=(YPOFJL+kX*yTOE~##`Ro^c|oNSvowPJcrs6p&->ix1R4y7E1f1Hqh}R^QP|} z`*5%Fy6wBwT+H7AwPz7;S#D8SPpG?Qgbc-J9Sprf$k1UoyNP-UqdBwjjEFea`U%IB z)UOSI+w`9L4GclCq&NhbUtmN=2r+?0ZIuZ~9ax#rW;V)my9!&9BaI4W!I`4Ko+ir^ zR>a6> zX>UqrbLwT2l`1&rq$q+&zcIggvS62Q2Ir))A>z%3{u=9x2b<)ML&p+gyZAD;`;423 zoj;91Fys3`zTY3_zlUezH^U0!0N>R2Bp*jOA)<&b$M_;>B@u!T2!hKPWpZFDnV zf&z*%Vj^s}mAWPssx@F1j_ApvrcDls{}J1f--4~I94ajjt{|RP6dNn>z8}X&r=Ail zKDYzT%Q`Ul9yG^yWa@_IyPy0o(Y)dQ9f_Jj6N$g^Q6)1m5Y5N-hvwLu4)=+|9g`u0 zd(RMesQ2_C-$A{<_LLQz;q@?Mq5MG90EfM69(1)i4i~Dn^>@44Mya;)PQKpBc0+T6 zy_J0}LxqaW$|Nl)&2m?cP}0vcNtMQ((0Z^Ssh_wc_1>@PZQ{-j%>TU|8<0W2q&xa+ z@5x5rmeYoW=$8w9n4clmo917p$s-E0aI~PVXPxW$h!_KY|E-!YF#$n|9%%7Hont>I z|IvXbq9j;KYrpnR8`}#Od?2f(XrcY62^@Q6Hqt<_l`T0mnt2fZiVhsMHm+ZNr6&Df)wKq*=O+{jx+yug^wK?Zly(vJck z8I*dKLMx}4(5g4>$q9Ogi}y6e`dLMEX+?=;A(HU|X2`*5gbyIFcVwRlXPs&mzM^1( zOD$ZiE)e!BGh;ttV=@YOGHaiyTNrqudN+D65<$E80G4{GclOMI4LVWMJLo>05ZTXr z@Zu;0^EN-gX`0;0_6y7b{&*b5y4edHxSQ?A%)|oD5*$WEZq3QX}{=4$OeHr5C8`E?>YC<0F$NSa~(bS7jsL zoj)@!-2wL(Z;Ny?S#%7p_;|a`g^)d_y9k$r3Xj6xzmaxh1Pw;vB#|i6cSGqQM@}&O z>+S8W-X-VR1iAyOqlDFr4y?M-6aCn|e9J~q+nmm)3m^m zYIojHco4 z$+7%I9$%{?Tsv9ACY3Gk8Fz9Cu`Js4yRv7k9~7VJ$F zUCs}ot%ZJK#F~blk$$s%Y%HSdIV9pLf*26Bcc>!aEk}S@3O3hbIo+FxWaMrv*p!z8 z(p+){_gp}m5ptA3(fzX}K6W@s@%z>Kel~g`F%|t!*fHgN3io3u2(HHPL2eFxJWC-B zK*oXx56=}Ff$ciMgUpo4xFlP1;R)dU8!`$V_7?;LtP|etMuR`@kab*`wWK5KuU%IE z@~rBSj-23!Vb*9z)-f*Y6E|mNH7o0@ky*+mI0(lHc-}WNE1PMlSIK4#Ds&BcmAOF> z(Vs8TDXIJEAtV<+dWVVW>d2fSd@)&pXQ`i9^4Tk#-0Dg@{bPJsn>yS)J=*lh5Rv9f zXK$FWJe9)vBe=D|P4y>haMtD0Z+up7eDTGEcj%AA-dWy)``H$P*|p;5a4b=DKovi1 z+@5nEHPQ8+*5}4`SJi|=ALCVF!8w4{0m`vvJ6qWX#B-Jj%NCgzz5N67{G$W9DB$&@ zMU2K(*BoF$vLPVGGX?nSRFqg$2GK>|RoA!E`byHdQd9WzHWwfH)=Ux?!>?&0Le?axYRNgrA zWcwEpCI(NfC*!{eX93>tcF6cQGCDmbc&{^`CEL9_WJ_k?Nqoqdbns5wA>#!uqj%LU z5)?#-0uv-U*dca&xie1zafQSEj2%D>$}|SPbt&s+Rx7}N z`Hb#ldr5j6HbjkV?XH<6S7&9D^%nfmL1Zbw!TY0wcW^^iMozY5zMaYFyNt73#-r=A zGWJo%Q!^RIx{RliF}M+F39cXv!&p>EO2#dyrLX$u>L`fe^_rz3-yZ<-G}~ z)&#uuK^*L*njcYu-AJ z;^Nedven%FzAF7jYfPVW{iQ#)lh|!VHQmBOdum$O;vI0hKLqpgGL!ml_U!~z74|LS zuE-bWUjq}~KaQ{!kp_!hfMp!F?I)Th$oSG6e~Z|XY?{iu;*{;d5?)n8qOwpgjm`Gb zgaYgMc592a<=<-w1^HJ&I%SOUo+y~bYoh2%{xYP;CiBgPU=<*;8W0K@N{$=FNlc1s z#InADzQG*bc5^8jkFT6iDwEqI!H7iI?nVC6x{2VRf1J5xjX)7I7h_zqo$X{srE412 z?-YnM&%1l11=(8kpv~D(@FGr(2z)2OD%;^4IO?4qIcbem6=NAcF?d^Qdt5m!sCif( z3^E?zU3^qjGJCbfc4L3uBwt}>aPJ&*H6Ek?f#i=Bn9B%{su%7K!)2+_;x_e;a*gT4 z39B}}`dd=m+Pl$a_^K4s&~Gcw-t5~+F>>4Kp6=;dzL9i7N0MFV`z^I6z43cxx#aCDfq}c9>sTujz7reQ@MMA>|SUha3szbRNPo=yy#-Gdm=13U*tJ zW9mCa+1!0`=>|#UU6Unr>}Sn0N=tG5Flh#tw;gR0QhY_H{yS#{^j;RZqnX%YJPaB5 zLEEpu|3s+%-T3#E{naHt-s~(!F<(54%s$0z0j5;_3UUceNfewvg5JfwF$b&XB?|f~ zUPbRYmeGtW-Sts?{`Eq6!kY|+X8kPe{a}vetn0qTwmc6WI z6UWBt0b5etp}#7M7bS>nNfdl=n5$h{5IuH-!d=c^j*@#p{+q6o%6Dy2ne4l(9bxvK z^^;99V@mz_$VbYdw^GCkpaa zGknEZVTthQoT%C0`k_^SvfRbyw-~k>tNxmu1mqz;rx%7jXGwO?QR;On6fd|^KS^(j ze&!UWuj6^a5!6Me4IU3K%qay%>MR%=6w`av?d;1@>R_B26Ms2XWRGpWJMALXGkj$m z(L?G+iQ+M*iE<-vJCvW64+r=wKhCD!8~&CL-IRQ-j-#7%kqX7XOr6UwR_R*DJ~{XF zk9pF{)FGBdJHD7FZRATRp9llv^G400oU*f=iGm+cGcJ}xl`XQriA>3LCgo;0UtrJY ztVU#3%;+5{T#>pQ5KLjxpX<-ZPz)J$+)Q|HA0rBxU0ZO)PxV}-8FA4$_H2ty#g|+r z`VuPlN4D0>>-SJkc{qZ)yf z1Mj1KFu{6}H~6gB3haGf7G(1U40De2-(P~Z_*Zues8dOq|9lei-qmMFhWs7&Pw9$_ ztb~3nKya*#=5ltgW9-Y^$c-DNdJ=bS1!pbbH?HMf7i(rNe5~b8%cf>haev~}b~lfv zd$xPCerb_^{qcOT*1QYn=^o++{CAj_>B`HRNO0Q}0cZG%ZEdf85ju^k755>?(|vnr zlzf%xw=4Z*SXz5wR65e|qNz6dU9j95pXANF%1z$x0%D|PeR_bCVcRWxWhRdk$YjA8 z*Xvp+Ts&2-I`3c&%8^Dt1nrE%Qr?0;4~8t>0I-OAUt*BOy{-IBcpvL;K|bHhmR;R5 zUf^stFEKs}WUsGKS?YaCCjAQ;?){SYV8QRg5r`hadW81`AC*DRFY-+DYq<yoT$t!F4ZVp!|m1f0eFM?ty8k zFfV1JtG5TxjXyYXR~!`0nUkCF7V~SHm;VZFLgpP0CB@yFJ3k%5r={NW)Alq6<5KU1 z@G1Bs%a_5Y=Y?efe6az}5b<K(8Tefmim+_=E1_Akro|9e~Ei>AEggkaqT4+ehYj-jt+3x5>LBoMk z%{9H)Rr4RstK{8gqfkNNSel(E%GHl;w-q2+ za3-}7C#~q^JA{RL`0+a-rM%aNYG@v}K?i@`4>ZC`|3zQXtVxvuQufmZJ{ex%)H8(H z-kd1d_$yl4Qp>hl?_?e&?FS^h7kR`NtF&d)ch9u0LD84$9&Wls9Pvg=O1~GJe@{lK zdQ%Neub!W*L5_+3(mIW1=r%yFhU$KD!6sfbO>E#7#Qro%qi>VGLYq(av#HwIGg-2>vH3u7tH{DrMFWKnbxOvh8#wKRIXIdHLxLd1sbJuLeXg- zBneLw^^RguX?7_V5Pscd5|;QQL!0%RbidZBLDs5P?~VPUFjZO$;`FtT2``^t)85bF zgR<(Iye20`4G(sHx|B~a^@xwBgf`PUDf2|joQmezOh z%iBlLk_*KdpX0voB!@=-q0|S>KDj`At5<3#Sfa(6)G&f7TkAEQXL1jGqPq;p^+W5F ziWT55QVX$fcq76jxQLC2iW0N*rFBn`z?2W6xsR43G!OA2p}D;eC6WaL6DBnJ3Mzjd ztx<>AKmljC!3c)(_Hw=ZD7&NKTyiD7e}tLu&(8diy)+E9j}oTSl^J|oYceN}ccMrh z-%j{5M#-uO{-Di)^SpyNIzU=sLvN75PcFiSWCdGXA}_*VRC(j0%COW3XbIk4KO}*Y zX%gtfgeg+g$?k+tk+sk7>}2KSU?jUV&7M0SPX{X9n?gTe1!S^TE|_BF6{mlpo>Bb1 z{fvA~KNmOWthoCq9VV45c+QN6#r_=Wnf)rGicZnb0YziaaE|X2K@}>Jm49Ol;2)$Da}`gDeY(HF_>&~oW5cI zp2le}ewA}(R8lVt52ISSQKDJZ@s9x{((ihUV-21uR9Er-b1`H%zqiU7tND4eRr9s0W_EUd zL+AnW2X9A&m3QN0s0#zuP*nerE%9YNj~G9fE0qQ+mDg$EYnb|r@HHS6hufpdl)OG< z1gcMt#ti)(BRCd7>{FzSI`62FKY0&<{(O!r%!!gBI+R!Ty=xrhqvDzo2dJ29fcCd;BQR!%3QjjDVCuJ^oI<5ka0qC{V`MpEAdIkg%N)c^?| zV}lVYoAmZQGmBjyniHHQ$hU`($4ZDMq`uN%*~68n{8d(oomFC(N?f2+NIq6T_!p9V z0Mj=eYQ03uuv0n4Mr^2rj-PgZ`uNeSSRbnb>808OBkDvVB zP6A0MIziucSJfgnf{~eaMSZyA#z%2Sp^}a}%zJ`{Y2Vu~zUcdX+}Rx=4aOI^EOo+? z14Uw6SrVC}7g}H+6W2dyq@dP`X2O>Q_X=*(yBWv09}l}djm-(3D*|LYsi~dBLuNxY zt7PCd7;h%IVyEv=j9tw+!LkrpS1FaHT4mUr@11+0dIAF{HP929?3F>+UW@AO^;Q=_ zo+!S;UhfIFSd5%*uYa>>_29#u4ej|CW}(ekkN%+k4mFX9xG3pwxpT9zHC6Ero*U)9 zQwU^of7#D+uRc8sw&nh7n0sz^?iXF|E3)O<6DF}RcT;xm`&{m?FUo?Afs_;cG|YX! za>IzA!Qnh?2P_UCXE2HOGr}%CU#tAJQ-arb;^TP;Ku|?W@DoR#0awb207J7XZ>@_kc=h4CDet;e13jb8;tfh?Ml@zlIk|UC7cn+zN-b-VD_G{g+6`X zKbUb3;0XZNvIZL5tE7uI+lLpRVQ{@Zy!nMq=wI8D3H_-&hZFk4d8FV6f61yD*Gf+C zryN^vh;r&`>MvX#-)UZVkC%8%^z9bE>J^?Lu{1?m@bv^eqZnCvV`XtMn+Il1WA$#O zuAO_z){h!D*M4X!)x4n{0e#+}8V%bTWG=edNK}Xo(b22uMeV__Fc@gTmh<47Y=n(G z=%0_Gh;}H7f$7P7)CbG+k2V_e66Xfq<7|n?kf3Ucpb=t zC}3ozTd22904NQty$zO400iqJ`b?I=DuPYyH2s0lUJuu3IrF|ahJU!S9Y2;`s^04p z9p!?fFEoP9o8~Mck!YgWL#CpC*y_D33&zNSg&@HKQPj3%mI$Tbi9KBRR)_6e!%WUK zE@J$SwVg1BfoLb05|@^?&vu9@hP+1A?UE>Xcn_>?1~evckcKfTxP={yegc(AcTxq+ zZnW;SNPNcXeePVFmG9cVf_vn6<_0l4|3?B+P7B{Zl;S*379qz9BqNQ+(4-mV#6b5r zCC}#ngWUZ8*AOe%v!hbNBrFO&tejwXD%W~XV{cJ4S+tJMqZxjW1-$FS#_k`6I23y@ z$uIJRVq0VmOQ1QN6C!n;@Ft!E7c|HC3lO*;h}T5X8~i0_Ol>yMn!f0ADT&5}2F6J! z;V5i7B@3agTl-EtDY|lUbbOH>V%zPe@mrb!w>)XK@AKNwV`8#;Ukrc;&7Wp#b zqF6-6(Uqy!nN~AK>r75V%L236MVDJ!OyggZaK@JyLG>eS zC-sK4D6GY;cKdPWh1Xw9xf)9hds_W->Uc}gb8T19Q+IU^!?!V8f`976LR@SxdIT&U z?I&zSSB&?AAuLoQ3DJkUt1~~ehI}cH;0ia^Uh|8rYz5R93?UmdA7Q!1IF(W4~NY)QdUkY3(%$%p~j!~NvBpM3o&QyZCDy%#A%rGMl{9+^3} z@HJ@amF)$Q0!%cuQDZ|cS}Iwu$O=hFA#=|p1r-D_MpYsWHXShRPB~0SkjohR#Uxep z^g!2ABt{6{e`biwT;3DjkPH%Q0MP24$15Gl+i5(x5(PW+(=q0)m^Fo7+s2ree98hn zdNTMKUYvn@f}fZ{kjLiQqxm>f$h!B;S!@k(m~T%tDT%Y^8`n{vpZE&vbB0&^C>rV0MEg-^C|p@>+S#ClqIdD0zF`BD9D$5l$CUdlD2ILlY0I#D@g-# z@OCEYSJ{`aj#APROA1Dxg!uRBbRl+={|1r1oBV&Vt4T#;wbGK_b@z(MG;7FNSXSQM zkM5b%W2tv5Kl+#OuH$KCpdB5_{5m{8i+E3rX^BdxKOqNQB=0eo8EB(3(4IQm4FM%K zv-l-RLo!JV&Qz#yvz*Ky0F0!bnWR~i(wgLd#?k?&Rso$J2ZZ+8ba2xz5mWZ!1fzZh z!8mNKH@5D_!6ko&8Xxed)6WdVTLECLI#HF)vv;!ZLDJ=!q(Vb6!orubSU3#o1V6B(;MOYmq~-oBTU3wT_;sBK z+9m#l`s(^eU0bd>Lp1fqo~0ymHdg*b<6TcxgE9nc+I$w*XK?!`n2(mvCe%QtgP;fb;^R`%)&&`T&Tcqv7NN|Edr(AVvs&Sn5<3| zOjja4;+IK)LQTNXKgml5{Cbf;>wVMdGBMJp>x>(s`VQv^J$zl$O2#C-eSvnI)&c#c z$C~k(UQ4_OhsAI`0F}<0rgI*e{rDT{#fhS={S2>z@n5t&WVKSSo3YOVV8LX`W8zjz z^OMimZ#qdJ6p*F>iO8PxDQmd08^wO}2f;*j@7K(;hb|ud&aqZOJ(!Q*0Sq=B6 zSyfq%_RP{ZR2ffZKMtH+sFHrQqbAe%#nhC(HQ4M!gj~sam-f&26>TTnL|fjFJ(;eZ zR%qg;Lc}ljWpw&My1%V#nL9&@-Dqr%quw(f%2EYUXcH8E7HWx0v%|dyE9r|*l@$C+ zcwC;{-?BTHtX;ga<6xgc%h~8dP#cehI#Q%0-4k)*lz2bZzSFeI&XbvRIQ*7>{>=nQ4<>@oItEaTQY4l+}CU{lZ(pvVvzB2u+)-ijwAI#l3+jT$9cJ5Ow zdwtfE%73Jv{7Gq3{$V0^)E~AP)+_?;`{FQ;faP&JTC-3-G|CsYv_vY3; zh}K?n4QDOEQ0|K%9=6SYy7P1@?TEs9slavh*)Sn|gWm7Zl+enV;g0`~7(|6IeBl=A2`qnh38jVz~mYwgbwO82~ z!kzW>t0Py0{rS=*jyFJc0eg{tXl|$4`Hj+Ey${sy(sI+nj_rwY)I4?|y?H=5rzAA| z?kLPjJUNuVaSITSzti$wzu{lSw+w%~CEaWI=ke_=pA-&%C;tDKd-M3Jisb)00j`E6 z-k?O|f&_=rAkIusP*53fB_hyTxJFxozc;87Zf)F z$fl!!`@W8z>vh3pKx8D(`%``H%}G$d-{<%I{&;w4?m4HcyQ{0Ks;jH3yDe@!)#ta` zV4Tz*WLvLbjNzfgOXhRyF(iUl_(Z72asH8I>{%ZE#^h?YD+7KM|Fa{Spzm?`U$`}L zvCj7(q-$|KQ@3i3aLfk1BpT~o966Z>I(@t;#z)ShP+v50rzIq*y(gk-`qSLtj?Yci zSa{w_ED(Ustcw6`C!lq0Bp9x$>^8lnVmF@}0W%|XWeA2`0G9bLIk(!#pRZJ|W%m;h z)PzK*{USlZv93<8gUwSeQ|&vd&Z%Kx(2l}>?dn`{K?KZDJGMie7pu;zv7m!XUAgn` zjbzwOT!cU~l^pOS90q+r{TaC+Z%OZi9j4{Jr@clt4_^VLGcNgZ9q|26a+ zw}ZYy!LFl8(_Z(wgE+p@ZAY)`=O0z(SCzs0SVG1f3~tb;Ab1D$lv&y7<3_kW^KdqE zjKVSxWx3~!kVWc`?VBTwk}1=T9T;)r-&`Uu9Mp z4@ouxyU2_pVMYx%w8l;M#9^8j(c;{vRBT+-mtul(<)_w?m|Bux$moFoirS)UJ&X#XVR0I4xdzzdEfNevPnHX=|WRx&nszU0dY;q*D`EU?E@p| z2=eKgC+4~$n4AC|9SPl;o+}+a8A8s53!x|Mrgk&LG~cAOB*F!cB|;@3m5j113XZu< zq>xzzoj~0N2DFVZpeKNrzm`z~c*XEGQ@P+vy{?@yb@!66Z={ZD<&lurY>}r%ZDPi^ zw0wy=q$b-T?o%-PAey<8nwk68f&TFsx4ZUkDSzO~al?Kszi@~@+`0KsvB}{&`=Xnd z9K$ooFcvQ(d4b#3>-i9#IY|-=oo1Yf!d+6&h{H|XIr^(-`N}yIJu+!Wg=9hIT}0uj zr~)&O)Zu|K(9+-1l!H1n#oE-VJ@bC5Jvuo~4MIL#dmOGufGb-A)vhVD#Ts@fFC~$7 z{hzkwoH-G(HmmcpPpmE9ji4>M!j%^Iu~)i=4zWh*!ZTv4ct?5cTxBs5%-MI;)BM=p z{K(hK%o|RN-F+b1Mr>K3Y~hXZ*)@|@m+s9hb+w#8f*$lxgJtUbyhoOtVp_jo zi_<&PUSKo90zPM!QRs2mLO(QkXvP+=Y@v&-&@~h~*A+U)725dYh5p_O1@S-dK&bNZ zH02Z?@r%Wne=VAZ&WRPe#vZ}<<*{!M&CQbg@&Vu8uI{Iw`zdul{q@tds7o^TEE$&g zvD#ZYdQ4h)_fnOurG8$l4eGQ8$W-hDfT{83E=JzBc*|UAH{b6}PuRngGCr5b{uH8- zmND9izmi=bXNUDGKUM*}Uw9CI2}r#B3v~y68LNgN_W;6R{n%IeZkBeYAG@uawf-b# zvUc%=U$}0BFe`pvKf_mCx`*fYS{$E$)e^|dT&*XMOYO0KwL3Vg>HDqfkIl#sd4*!7 zl7dGLbNbD#S+y7apF>=k9JNx|=&HHgs$m6TgfUL9)?8Kf&q~jf`HkvW)EHZ^uClI1 zca_HH-zbDy#tzsnKK}tBq;s^l4c^4^0h1FCh%kFsQiCoy%p}`ohTy}_kof+$5isIu z@`5*&V2V)fDEyC=HmfoMreQcxexUkj5)a(V-x%EZnh0Dk!CeWQd{x_Vt548xok1OZ zbOfqUP-lfu+X`wUUbWzM{h96B(vVl`sCp`WN81WcisX+g|NIY4kl)3Vim#pnG@)Bb zuo}Y$9JzIzQulEfruL8I?WVk+(nO$8xj+>EFw#TG_`fPs9^XD@ynlp{}H|68{;$Y|(XWQHB+k;{m+<^<%%ksb0I=F`Fb(B5%oR5Ri}D>ZplTpD%VNN3ok?IyC}A4S zu}YCj8uKShgdLE{?)t`+P-Djjz|G(rDfibQe6qp@cO_l1E^jf(=8XO>H1fd|--_g+1u}}ET=BNLKvTNeJ zs{z!t{9sqtV^WBz*sx>6c(^Zz!f&_pF*OnvxVV7szdS`FMO1C3N*&QfbQNbn*BysL zSHHLiKM+6(vn`?9_kN2g*tD@*J+s!9dHRYQlkuQ1M$N<*+ox1vdq!O=;+nuU7@f1MbzM*fi2_qG*JmUFu}!cd11ng0sc&`dgv zF6rf^nn9@>^pS0tzs4KBZt|YqKn~ngXi^>BMYG9fGgEj!IEJZ}IJy*$E?e@H@@Cey ze+X_D6;6dW%qnXC(+OX8j&;U26$=g!(IMsRgN?V|vv)+%FZ|bk`%AEvnz$Rho_oqQ(mhR|O^`kvCw)2&ahZFN6PHgQF6X;n!>Sd- zUStiYcs<`(&S9}!(+5TH0Z|alt`sRk`@h@~g?>-8n_ThK&gwB%95~jL1L;_^|2RH> z=#-89@)FHlEB(0<^C5|otZ%N`HjkO68L1}ItW@OW0;l?_%fwY&R;AYN>bUbsKqJY}NkmjKDNeyzb{iu<;2 z*W(oZ6e=TgNE8^d;i;J=K_fPCh!CZ_+dRR~Vfzs}P>DvBgm`CII!&i=-;kWI!#CG& zpYCd^P#w{o2oEGG0i2Cpv2FzFe?O2{Qk1L(wzZZ#c)U?sM z?LBoYWrhWEtj-CsUxx**_PV|zX;>Z7k zu&k{s)T%n>lUrkG5$dVpG22StXPv=f9_HY76FKoX7lj9RLaY|!?9`+B@rwt3hdx+a ze-YbP^g;hLoUq-$#c079YsAU7EaE$1WJ1PS zzqAEzXH*CIoR^vTGT8rF$C-)DpWTws3AJuX=nCWZ;F23%Bq?~p{I-OW-UUwO;KgWZ z4*|w68unuB3b zd@8!r)`eF3eMj=l!N$#Zs9cl|f*Z=R_ZXiTuk>9mrGW~__a$862 zY~@tp*Jir6+zANs(Jgcz|5U`rFfS?n8m=o81pT&mJzXS(xJ<5a;J1V=AUH&pgeWM3 zokJlU9ezpHnS@_i$nh+kpAb6`jq9S)MNhA*(a7%ZwkHdDf+C|acA$vGbPeWNFq)SS`HPv--xok!~VVHgx*?}8K$2%g4( z0#X~ctY>gh6%&Pphl_q^PsoW>4R}Opc!LVksJCK(M2OoAA3x{V)#qt-1P3t^PAy z{pXB|KpB=hMX?+KR8XthM~0%awz`Wg#_e{(oon~EL7y9)x0RVgVIJFNZ7LGDYLepJR~`#W7zfQ%O{3C0bg z1OG_Zx1-b9-c@`eIF$=0bhG`5y~bR`${Pbte(Z;JQY7(a1wuxIw(v25`Na$MqtR;> zG{#Q2jduc_Jvr2#y%q7KFyWY*xYsSn_ki$Y5DKbSD28~DsjD^BA{gP zsru1*KVHhrOh*W3ai(H}4Txs947VHBhM812S1FZl8z%F3jj^I^P&hVs*~p%HE0vxI z4q^G2AeCWEKShEj`CnNcPAxPvIna?;S8ej^^dM7~u?L3=N2>20Rv*b6{CgmzpMxBA zvKQ`k^hWwLB0z7{YHXrP5{2uP>TB%J9XESI>}tfDP#?LLQ?U`*N*~@g++SH5YO%sS zNy?0nW-RHT@*B-Sm%=myPcloB?Fx&$V1!u*Hr-Y}S&zt@VKeJ_J@{AIn2S?^GXrlU z6xCjRSEz9QtDu(KJ5OSWyN1x5)J?93?Uu|d424wTY*MiQlYM9KFqrvlalO8D(NcIa z_B-XHw-cZ-t$#=YjxakRHuIaTvQ8C_))Pc!++{VRJ_{;oN&JawNr4UHN)ib<0qdmUx{a*1Vor>z-8{cpHQZwH!@tJ=F z$PROuz(YG5;gf8>pD!{oAr$9LXneCt9sA^{rSSE=X*(TBw6>tI-)m}2K-Z{$Qrw;b zZN-4=#DMF9(L{iH{&^%7eo-LP=Sth4EXXgeV|@-?1PvHy;U6lgxtDet$p#hS5)KBQvn21OvZR{2L5qyj+H+6Fg-Ejls+ zW)BkWESz|AOzUfTOh9dAU-}seD>R*_79?Cg6kX#M;snOTy|;j+`l>?KCT1e z@4jO7RGt>eWtPKMhE6-X29G#WPTMmAX%v4;383UCzKuith^SlJD6afKjSCS!P89zN zVh3+I6h3GBf%?q2*-+Td5Dz|sW78LJ%8lvmiXl}wAaMIvE@oZ`;4y;jPuu+hhQ3)k|3)=U!6qNVr0PmS0;4&kKhbIJg#o#6<6m?&cSc z5_uqc}cARK|`sKu0&1Xua zz-ogzFVd7$?4T{gcEMZ5{X^8bbW-pMx(2}6yG58jCL+xOP|X}?V2d2sNCF`BZnA;T zDK9uX1T&!%e65;X5RB3HRBZF!kqkYRVc#$Vb{N&yqA>vL-!B3Nv598~EI7=y;%PRZ z{3#4I)Nx+jWx!6|DEll>Esx)`|7 zx45Fzu+A+!Pv1G%Ho983jWQe)W~i|iu6Hfm&^J=9apA8*FzSa8FGzL%{w4k#>kv8Y z;7A6^d~oH8pKtWkGygZ7F&R??w0}7!QoQNKKhecBGshYKLMH-PUm5{4&ZrYF0O>g6 zZw_pH^!(Xfh3@DOtTWw)I#&9qJW{T4#x7w7#~HtM!^qZAx*2EuN0cget+*pP;_s|l z&tCrXL^^)_|HK(bQ9r9l!RXc2{(;eDR%3`d_2`c<#8}tUS4A^e$Bhg#z-F^CpO86LWUV)~JFZ{4; zyve*|siCC@u&$L_Xy=+Ea*(iYK!RZMiF@p-+y2hu2YCJ8Wt1+MInz|F9i=c8o0X)@ zuA=F%utKF+jjZ-0@#{u0G2uGLEUPLm&Kap@*tK}v;X0jyXKA7F!~~VlP$3MI$o;%d`nOq%xI!Hb!F!CV|f`h zc#$QPC_!1-Ku0(~8eOARuo3|mGITk&-861ojbRnP6855V`yTjj*Jh}PTaf8fm-yw= zt-ZoYfuYM?#Hx@l(F)x3^_QKXZiMJ>5~JO?O#DH{a3?-IQlI!`O;J_j_dlpln-=nSj9)s`)$O%!Lo97i4#6?%og}$1;ox}^041PoLReEmrVYYkdHi^a3 zq37+lU0%8dZ`t7W=_-D_ry-2~UB-ul_z)b;s=m#d4q@}Fmkfvd9jH7gSgfR=u>@6f zOS>uDX?}jdY0S$%fV0py^sts%(Kn^&o9Etj`sN=bcG5Q%q>iH5Kv;m&JqT_|rcm4l z%M($-YkdCPMc~oQ*1I`I46db8jD^;OhktYFWnw3!weQ5;0u^GDq7Qg%?+U_TTD zufFZrtSEg9B=mHLeg0}$9SNy{Qv6wEIIu!%Ft9V)Xa{VRldq{b|BByx-^mus8YJZ8 zNR44do73^uiyxpwQHEU#u*H{y)GpooAhI|b!O658Qlx(kF4d_+xjA(tT=|{2a?(D4 zZz{4gFb2Qr7W`DuSupyKma&W)1CRNIvBG`PQz4}0f*+nXR(NF~vmzY{*4e*#zNp>w z*+ljK1oc05SS;@kavRBZ@C*MtMb9YK!K}XDGN6G%?fCIQ%7_cF^-}^+UC>N*s@o0~ z&3IV)?11{-%1a%W$UKW&Wx7|jE#ipTrey_HP2Uy7Q=eEN@5Gy!)uCxVKp5p4@K)6#E1kz)~B1zZeNe`1Kv%ytF2LwvtZFEy?ZX`7Z#ToQcR2eGVIU+7)i3i?`}Jd|Urdkq#b?;hE#cgfL$#RKjo6ouRk)E`i5(yKu9rF$!i+efZdYhq zco;vUlZ&gkQ?7~t7Q4>*aR0#8YX8s)Hp;BAq04M&hD$h-1Jd&1Gw$YdwLhk$I(2GE z_3-E8)3JQ=80N>EUZHDRr%zBijfaQA!&9KtlxkiyAF58xP%)XUs~Q*Sfs!VS?%H#- z>9owljuv#*6b%Y=rz@Hpj0a4t22A+a)l6_6>^mk|`B_O-8jB=t4PIlLBfw?AKBh-?dQBDke5#s0=*pgy9_(=9R^&CK(0dB^IZ`r#+GQI*;5-aII({eje!<#ULr|2GuePz2wI9G!vuj0bnYPs2i2mu?Sr(eKerK z-hU0X;uXUq1Ee{*K4I)y2)h>@_kGHB#9qe(D5DIh~fRk9h+JfLQ zG={#mD|k#1bOibZKTf!&?jig&ODO%oa838J@@jwPYKli?HnW1#UZCc@B`6xFWU5jP z%;zDjMl1e=)Ez=j_D;XjPlpR&woyOHOhr!G1G1+W#eYQ_EBgP=Gz1qH(Zb#6n! z_TBF08SCr~jU0Vi-2Q%+eE0s%3vdjTGqwFZlu&Q+BQ5y78t@wyq-f zF1fM7&i}7?@q?<=frEA11S@njt%3nzaHZY@DH#7~^x*de@##nxZ*`jC{FWkX5^KL~ z+E_4Z$3>O>mnYUQ&rig!Tb^jf2zX9_mgO%zStT!i(6q61$F~08uPfL-TVnnB@%h`Y z{gg6xe6#->>lf$8uUo8IkGERQOzo}ZlaU1JW9Du$4O6OnG3qQ%A!`Qo!pv5;9^4;7 zejIOFr|OfHZL`?mWN=DgMa719*ly~hr}BJ7QE?D zdU=~jA#iE78k+}(qEZq_&4d3Fg%Mx|*DUG+rb#6bt1WmCSmd)?F6LrcgF7QM6+866 zNPhFf+%aGDq3DliN0J5#%PTA?c<5=K@8u6b$E=C~RSM{3wGqM~%@F3|<$T(9F@I#Q z1yfwEWYjNc*4$shT#lR-alVI0Vx0C1B^_W%!NWaKVFz`Z%yh7y zOrQ1C+_)(kuZTTce!eUw7Un2Vw|ifH0WHLYvU7BG|I4X**FC$sZ#Vg@H?WmlyXmw~ zf9Q7lAyd;`0zx%=@W}Hh1iVi#JgIWbr!9LC>rvxhL9l_zICOfjd!#YeGw&!N;t&lk zea0YX^@u=hk7jJ^?!L4D7N*`34KYzl(*3i`PE!6{dXkK~IPVxC{%IW+2L47G^ z=t=q^pyWpiY`y5u3Gw-f z@dt8(k7k;-P%KrUZfv1sFU3|X`hbyyu=#FY(_(gjt%^6DB$&qU6$f_FE?#P4gLWb^ zwZFeXnTCIT(bhI`&A>|B45_*Df0dABj#Mx9D-g0&jn{j^^ zy@HVj5YhxuD3ys>#w7Mr8Dn<<*SQH+)pKx3ur+xz4+RYl=!&S=#Dve^1@wVZRi>Sl z)%>Q5E*ytlMJ((nmvzh*S9v(Xu34Kj=n#wx{oGrr&FO(YiMHFP6UA zSt|OM8gX3p*p$n91xQrayGZD+$_3)YzTMmS= z94ARvOk8EgyIl$f+OoJs!8F_6%&s%`3@+FiLcJxk&Tae&W_6>x6*iuuP$&AZA|v|H z8o9q=0dHAsC+Z?>B(~#tN2YS^OR?upq4`&YWNHu1H{BHuHX}>K*}*vkveP`rEshiX z6HC3;5AhKmH30*B@(3;vRH)mlxRf?*@RB&`vNKo_f?}Xzun)U`o&3@IgcJNpv|gEC z#i_Jh&33b@;D)X=ds`B>nBV+Zd-q(4%|Uwya+;~5ykA&s&;KXw{Uh59{%^GR!*CV} z_5a8A{=LhOw|DXo`nE`YTcExz&`DQax8kHLJo>a4h2~DWy0})af@)G6WG%&I=KrWX z*=E}g@sFHM3H@?9Kx-B~ReCa(j6u&->=ONm69&h1f|*|7u5h>~{nKCcF|ro~3C=a- zLsgi8_^LB)oeec3`>#kw1yP43cEn~WmE;9aVzXv?w#5dLCn%EHd=kS*u4x}?-n99cN@AawmoN|5>Ig;ml}|uaJfYx0EoP0rqa(KGDL`6 zP9{HF>TX4x{>FLhG-<>%J_dsa(n}eQejD<5y3NG0lRWxe!M^FUaq6>L^;vB@0Eee) z+rn<(*>-sz&G(B>=bTanvtQmt6lcz8fsbW2D`oNLP?B+hZ|4^eT@+nel-TaV5<4m2BxYNkAZlbmgfp8+E$LDS5u!-qZPcaBHmiW zF`KeFWwXTR*NkWDOkKRvPt;ZnUl*U=8+0;P`!%(dsY5nba?r?()Nwd&S}T)_$o#;O zwef3hDt<0?RQVO9CUtV?(YpnCK>$uR!e}?bQPf~^Zy4cqzsMaM+M{hHn;f{r=@j1a zkoE8j6Du?wzO0`lriNXN*DFrj!% zdzSKTdqBjA9eQ$PEVlW{?xFSLM);KOv(G-HAh0XKwE;U!-17UroxW1C8&s z(JP1f-4-9VyxU^rFfaWD1`rD=`s#CXR%w<`Teqn`KQdE>4etpB9PXsTY;oOa1V`N>YzHzTa8M8bWk{Pfci5~!DA2d zC#-+;Ns&^mYv24E_4f?AF}LMs^bahQ)P}x5X~cGM#J-q323d`mPc};xIlyq`r!vF);o@5lF51p8Wjq1`nP^l?$?~G?o`}3$L!A|Nxv|YhM+#7uja&Z{~;s9`ugqt zhl~*G>w9r@iYA8BUoD_@eSdKh+Z1(Z70&L}DrWw)@rjnH0|q4;+E~Tt4p60k2pa70 zwoy#?r+1Kg1Q;b1M;GT4{AEHi`1qRmEE|`i>$}{i!*W*}OH* zyhBc}~qbPVDvIwN)Fw_Wa{&s*+1lBOI`{S5ZatD3)>lJvx5h2USh~#`XGqbuwM?G}&=C zenS0w6^&~Cp)OYCZ2}(Pfq=XWpyGULTe08ca>JtHW4V3b8q))SB z0A=nj>rewl8P~x2E9{INkLgWt@+d)}@U$Cq_vEV8>GiG1$x9dnXJIc)*ZB!rp<7Mv zWh2kbe@c8BU+~9q+=M-F`C0JDUT0MfUlgDD7i@r*>H&M|kd1+7B}b0)lI($;#f2VL zyqdz0ex(&e#12EH7O<9Alv5sf^*!bZg8JXA8-iBYCDaPseC^+?ikrK}7qCk2; zUooLNe&6!yu1!R?v21BSjAQUf1)NslhTyFabCg1thBYPy0Rzhct{Q`v2D@4DK-nw{ zjL{q@8;i#?>x!>Eq;!GqH&l97E%g_8AwFJwCsV#;;#S z*S$^o*@-`s>G)IYy{640<4w<5El;ewAB#7>V6B(`Jvzm`No+KJj+jB-c+<^-Y<-U< z_~KqV5QWY6HMp%kh9Vg~be6k22En%BiX$KhsMqXuoHXXOdBHO$yXKW3&pWg<4|vaT z3Uzbi(iOZeA@?41eR*W#ci|7ms=98h%uyB23z1)aR}j1?tif}S%>9&k3HN|KB`KZ8 z!DEdLK`*}E-2f9r-=ia2Q(I3y_FLxJkCdyH6z$d2l_>xQUiam#CXV%;L$t?x$BG zzgvWue+V<&_wXGv*1s`UW4%l0AYoE#>8A+&3vQsBFgE7ck6%$M3e^UUf2X8WY+3(^ ziDHWlci!(vHz;c&E&r!MCc8x-&G?xHr00j;t6-i3n;vzB7KsqY0|r#N;d=>C!F6}> zr@=bknzMne;&X0zx;`HG>eZv>reu#!3<2cI; zy1S-a{xybIimOf{*5wxVx>3A-tGF-I3ZK+h^HH(r^pB_{ zbGSB&!O=xh9c5A-Txre8gF{auuQza+?(m+~By<+y(eixy9N$CT@9?`+2!gEm$yd}p zYPn*+vTuc_ys3re;ytVk+;J*8Uw2K%cF`y9pB|IFrdl1u-H9hG*8V{ellpunp-f_t+KK8L#`ZVcA@0UAs2(=U`4P@h``( zOpmpp@LUY~rlqAzf`MN_*oRRLB5b=kZvMv`96jmmbD5GdpRX~!q~?xeW?oSW)+oj! zi`X&Qs$;rPbQ!lT_=7gQA+P`jBfzu=IE6|QCVP3gicJy-_Vy1BXq>I<(pbhgslnl^ zE?Q{Oox@+RAM368kU&$AZmW+yuFjK3tqd0&+e8R*(-@YZXK-^IvP4s2NETeXt9nV3 z7S(Psv2rw+cALqK7bGzWA#hID{KB!3Qet^l3R*TeB3B9x^HkI@xA8)QbytqW<2pa% zaxAHt2N!usVs1a(?3&~?YYsBNV~d|qrdgm+Z!X zrU<`Za#fs4CLQ$MRlFQ)#IYSLFi+G@lK14lk%i*00f_Ro?M4i<Ij0uIJcdb^4eHP zoHP_(UHl!PjCKE3BT&NXb2=pe0cR`x4!)Q36gu z3C1DA$yHy_zP;%6X#18#Upn*aDbdGXzENu z{%cRZc5&S(Y=$Cl#1CYgbcwV8TspRuSdEGzoh9eT&VEQCGWjmX!%-F@7C$P+ME9$jDRB{7#s&Roxm!PS<>u1&QxpVI=k;Z>0~CnL~u; znph5AUD5|pVDGR_v%#KIp-^L-RwK%7c3ABnoDDOrTUebstfZnjzsiN3#%KQ0N=Dsk zO5AUBszqnbRI#zFYQyWJnQ3i!y{dKNL8JSxI3iWqrKD>3;`pqq)mQLtsf$dP3qRb5 zRuo*%E(hUIW@-viE;U0Vs1=KCAv{^|tVPj{3JJWUb{_h@$^!_kdHlYo%JIoJz z|M`p6`_}Ux;`GT;U*t{kSvbh zuT`=bnt<7zpcQ=wpTq5Ne8}oVEDbasPt{;==6GMqr?M4b^KE9wCa23=jDL}0gmyPU zP?#+JB>a9)$Tao|St-ceCf!pGB4E;94xnp@w#Z_eK2A*j?jMZ=WuMY^-E;E)llB(; zOnaZOnSzWBW5=Is@B1v1c5LsLmsop;rGK)$PrCkvwpksj5*S3)zfw-txAEyS1t$fw zm*FFj_t*%?r;uNyu(gejQ6-i3wC)Hc^bT8=OQ`-jDj{%$}L2QhrKb*Zt8Bl~y<%j>jXd8BO1Jo5mpv zwDfWt8I1WfW+wCf*qi^1NMlYHCm#%@F;QpIm>U62)t!W6Ao$oC&eqH|(%&UA zG3cZ6Pj}_N`SDMeAD7G~~ z9k?KUj5bH@X6|IxOhFmqA{Ug?!*!XE>JHe4a8UW>XfZ3_mu(-h}{BxVo8VOcr2r zF6#$U@|+tIrbMdSc2BErpDk174nmIZC)a{6L!`H|3dQSc(m5&3swScAfvc{6*WeTeGt8eH=s&AO`de2kGw@&n_Yi=|DS{E2<{d5HO#NS*QNyTR6O zww5Za2QB7n`MRs{1fF%Sm7ICFgW-DFGX(WBff{Y-%S`l(Z&k4joY1!)OYwi^%~Zq--_fQyZf+nk zLBz_jVTLVPh_YiLr?ofNJ@$Q!dWXLlZ|)+oq~EixyU_Z@QM7*dY|CyYIoqLOS0KN|jW0&B5%o`Bu6I~-USI(<{GG|90laKFj zGN>+_I!na^4$94rUji!l@_PQf;Y#H!W>XlVPJu0>_Vy)3)T|vky99eXxa*@qk5>B$ zu3Xd-f-}|C-u!*%+V_dpew=E*P_>VBrLK<#KU(eATw%3iXIa}HzQ$TrvPJE0;+=uq zj=4AAXi!^iQTrnf%C-G9pn`9%p{c($te~c=-7x-B_|I_oQ$%ilo{CNR zG?eG3KQp~wqIXn&1t+)`@vMLF;RzuakEhrpj1%-Kv$UaMS}^vDs4@fegA*fs25??* zSBs&$o6tSE6S|%0{fMgWKyQj%kq+^VgRdWZ=5{&4>-v#$Z#L!S&o{T}z%7&cQe>WG zSk4I}S>biDS%M?ab9}s{)s3}GQ=xR$rOzA!?*8@L8fs&wTCvtyg@@ZS_Sr>Lq0Z6h zXoGY7x=3xo$aiR-wkYPh!X7$|7diXHQ-36+Uv)H>w#Ag`5A1}?7>rXbd!Gm*<`V&>>(OZM*+j1jn7)5o=gs5 zlFeFL_LS+O;GROq;u;v$SPF7&oMW~4b6vw#3R|aG(S$11$p(kQqXwG1-_^NR7hGo1 zu$0sZ`B3TN@f-r@N^3C4;jeS3GJ{Yp2J#AN<^&AFPgHyWDx92%EkWOC{)jzVY)#_5(xRv44c)Ek(>%wx69?Bu7Uwq16K{55%1U`7F8z=H3r{if%PON_$mEfMH@Wknz{MA1S znG-(x#XGt}=JG+gbxH!Qm~^jN->9$48t3s>D6Ae5qM!%7W}xuqZHB^Yd;o>__)#IZ zGwWcwwRxjRag`+|lS+*DZVdQY-uNAV^$%3?a;VI5g%yOTa3hdPS;Vx5QuK9MV^N4o z3BN`SJ*;2`>lfF!+@*W~l`?*W3Ua7g^_8D;ewH^T_#0O4g^zx5Z56b7u^hp&T z?JC#TWsSA`6&>#6*DBY8>xvg|H9FkS2P%J*9~H8@t6X2Hd=Wp(8&~r;to*g`(J#K% zWq*$k%J;qrY@=S6H3s}ut?T%;TJ@lLieG%P%k~`~s5Nh2m%EAFRHv`}6!3Lh`Q|zxdbltdsOAZBvf5c?e8y@5>u&_-qA{gx@{D_1su% zppE5}D_y{_U{QBPd4bGbDUWbfqlp;B%)($QKS*5q2{Z#|oSw(4mwcC}GxU^-?Q(ZN zOCK-IF(w4w(E%rN!23GjFaP0yTQxgj+~YOa*(JRcCQTrT(qp--o7xz%m=A{O-Cfp8 zmGwQBbYqxwzh(y9#Ic@pS)Wl-@?DQZT^Bm2Ng>qX4r;s#_zOvDTn0;oO6RytJk8)K zeGOlO>Q{N%gQsxV>oDF;K8dkBYI{KFQZMOjCuV!NnSu;qpz52>-}j+s?7IdE#egSU ztW)R#=OhT$yn?kqyW?=%*`6Q{v9movUFEJ!P7Z4+Q%7qnlV3dePhytpRc&6|DsRJD zum2it*<=uQJTX`7!q7J9C~h3P_!RK55B?nECcYDm)8J8@Gby;jLJeh!EqB90Dz?pC z(rnle!L@dbeb%HCUpcEKxch8`xM$F3g8h8{GUP3bSQQ=U8=tYSn6l}!h&|yK{*Hq? zA?+?K+<#<5+*wzfDrib;TO5#{`oreoo8!|zB{6j&ai@!t-x1_CsW!YIx_(E4X&b(| zZi#k~Plyhg?32%KnqVH9Xz6sfD!*c5nHJR=Xzf?u2@h-)X zVI_ib+Z159x7`RO9hzz`kjBhu6g7bc$=1+a)q0g#S$CI69lG85#u6W*J7FvwgG0k!DpmQV!LYSL6x_9< zy{)o#DB=w@0uGk_{hpgmWJ!=EMsOXoeWYTR`+0ROU3ZjqU8nwH`;O!R7R>rD0O%G5 zIB~!!Ynw!)O<$_9-r7#piI71bc-Qe(!f(-eghWpdX3x!_8|?Jc>3_5=t^+_;s%te= zVXeHoAn-1Z5d`JIo2n^kQH)wt?OOQM}YimGy*Y7S>*`Ce`mI z7%L~Z-so;h*cQUFev_c@NObJ0j2eAzQR#G1&sxWIrI|-meZs%06k^S+sdWz)KF{QY zfcb0Jj5E%aqR`Ya|GhBhvc&lOvz8~u(WOMe)wFo0hhcC}SmV$Rt?v^X?pxX8_ z$y`tue`=-Iv~lF5ag_eS&bttQ)8{bU025eOuOa}`Tk}4<4(>XDg!w~yCR!$*6<<(y zbeFS|6URb{p7|}_*~C{J-R-QTcZw|-1?LTe)Bg^i1^eu$sVNXk4Axw^NNMO#<4Krk*}q(4Y+-@@snr8c=jsJ!hj>p=V`R|r)QOVw7s0)w8XWyT>7C* z`W#^evrq%v_hxp8qDaSRRsk$$B3~4wl%E_q(W*NNZf25}C=<;bS1(JP4)qel^o8FE z_NzfpY~7Xhr({cmlKjH!WuJ=qT0bb%;%>6A*}jNaYSreq973g{A481rZQ?NTU?>xY zbSdqOwy!8YW9An6PuM0xMX`$gwyDGOIRj1g$5TY!$v+alHrez`AsO!jR##9!F8;8f z!6;xB7$bryzCDNqRk`%GH@;zG*Z6dn@%cg%8E8D+$a?uA_hkzCC)1&Qm;8mMiU0#S zNVM-GdRv~D0vawKS!O2nvOF=-eMHQ4w+}wDK{q-pEmJsneP-*!ligN$Z3IlcGKq2j zF&SapwIw5r^I&$Z8ou$Ox6^xAvJfvDQ0rrwuAimwCr-(8Tg8q zoLFjF&su3*0q-zlOH7RSwyQ~u<(DVQMF2j-b4P;$nHilE-k@1IV|7C-UEemD#HU>Q zXSnuPwb6ceb6-_*?27L?rV{}jZ`z5bR*8fiv(k5mrK-CVaRbbk)Grv0$2haaJ9F8{ z@m-9|{lh1U0bpQp0yH?wDT`oxTP25JfMGGi1L=LFCgEZ8{{%4+7-CA`Ij=l4ClUsb zm9B!|AfTi-iZBC*8|^y*JOyIy#Y|H%U{EW1MSAW>KCxNt-<>_yz3WU*?$7XoX|a#{ z*~|U>(tc2{e~O+VyDRksZ%h(ANjvTn@%!wiq^B(@2u`vR2d_dGjqRj>JIJf8Pa)fy zRNDHEWD0?d>A-Q+@g-^qY=&F@yz8_zoiqAMig3xI_RHvLYE!x^^ zdha_Igez?`A}_CqNa(GBe@u_+XV}Zsx;jzzPF`riTPHRbT9*n6PDq6CIN9)6q;7KJ zLPYx5(3NK5lK2t1p!ZRKOu)Fi`~RhMm}JPUH|UC-WF()>=y0GHyfy;aCSqs4Lu4g# z=|AXZYYW|M?W>F4NdJNc_*ax7qBFf(7#C%8g;^C{(PK&Xm>u99qqEZi)h})f20$q0 zE)&RCbSOpDhrleLNcMU(OXS4h6JBBkpSTt zqZk2tH5!=rerN7o5`vW(*uNVLY`2#pVC)jg3vK}{c$K<@tO-fD=-l45+UxMk&|)u= zRvVV)$~J_zHN9S@#*QZ#JDLvg%i!%>q7_E#V?4h`MDDm=pn6cGbPObC1WBT_UwJV! z?JY`3J(S&Jtq@pv^I&+8c=WEZZa1ofVn58)=n!^-sjw|LKoXw=366PLHJnRZnpk@X zu6v#FnH|}k$LEn!lpXCYYN>VOC>tQ|VEm3R@W!2mz-_NE`{_EBRvNXYxr<+0>pv)d z9sW&x`u+CZap|BO!^)Hzhbg78uFBd_OUtl!)y~5G_#%kYfZ!Y`a+yU^xPu^*g+=^0 z1#ZJ)-LDKJYaL)<$s1|L!IeFnb==Dh1Htw^94#h@=(Pl#OcdugKS&n#oP?via|P(w z-9dAlynb5fZCI?4EIwnZKz-+9@$WYwOR%S;4W(;=P~C_Ho0gAnFpQe ziM{z($rbJ?G}D~o;vO)S1`|7`hA?zS?HLa*O_MD2Du2j2&RK{zYy7i~cnxhd{(j!H zyUxqs8ZxtPy|dtaPsB<7urm7YqImLi~4zut?hKxNZ0*R)sb7J zvFTWK5A;Kp+dMQ|=52FMrz){flNz9e-E2arY>Clp{TLIrdaE##dTWx>>?9L&i=>-P zE6YQY{zLoY`8)=-w)>Pqv&@{<<`s==R}?|NbT{4_xKd@hHq4o{N>KL}k4R9{7c=Gu zA0ACw&)_Zh^RoRIlW^BsQbMc|vz$HP;fc*mb~EZ5UfOG2}Vyfu*z2>V7&yU{Bd@NY@glp@mDtjhRKOY(m*9$ zoK4z$i=?rZ6uivzB0Z0Qis*R2{AU|=LZ|gKMq6%4(}H8lo2VWt_XZL1%Q&aN+8M7> zBZ_W{F(m_c^J0C_q(O5JoD2TY9cH2*8#m{bg7J)-m7E&84^Dt-ZQh1gz5biL{;#5` zCSRyCM9pEJB`_}*f4kNZ@hUU zwc%1kFPSOR{D#$D0~K|6b&^w5Ii}cVd@oLZ6M8|!DW%@(F*|NZFUizm+&0g6TsWZ~(FTh0)5}8Urho9lD`;vfs0tSzm$B>=F{UnnPA6#1cI2)SKTtph1~P##(Vl zvuYG-_aEc&U8EM$%xw6$Eb9@@denS@r z5^fQKRyxo#wgBCvMu6)uQJO7TD{@(SyDU#W9Vwl4@4R3IS%R*j5{h6P2ImA~8Q|&Q z0zwj?+-Xlnav0^VCx@fl3hT>duIL*UMgZa5yx_bL8!W>Rao_3hPhX6HS`g;J!s1eD zOz)&YbL8Vl#uuGtyIc4h>wi?=BoK=t@vUY~^)OTqHvZHfC}TazS)=TO;)I1#fOtQw zpwlE08aUxJ+g@8=jx5Nai~#l-1b56lB_>zyQd2MJd0hW?+{B78Jk=!8hj`mMw2a%Eija3-&z243WQb%W7KYO;&Tc-%k4LzvS3* zJfMFdnTW^=0xuAdmGu31z!k8zp6#s~OxZ?*Y0F=>U=(}FgUQ0|OC6i*Aw{C6T|b(p zB0oJ*6wE)zkiRy1_F;b^|F*b~);bc;<}FyIUdz#Gsy;0UKRF8jPM>ZMKe;YEPM_ZA zQ}CRt>Bu)ald0?JMy9EcLZ(mJ$<&EHoBwC}9Gs;O9xO+n@{m4kHL{H={5leKQD}Z= z66OCWg|5Z!L9{mxity?$MWM&VojD4f$6IixSRqHD6ZPr3@ROs^q55=r_{mXdh(0~d zr{Ev1ri;=M3iVMqJP|tudsub1{q&rJL!3BdcSzejx6oymXx#6 zGT{MCPe|cNIkp$XIWTQ@K9r6?5?hyfNhI#U$DEzOASF&uX`V_4X&^*1aiHdjJzB;N z-~!zT+*nB{zx<%VCER!Gs2!7Kqxm&=pP*kbo7kX*4r1%#ZaO@KQ!MLyF&piX7`Cyl zPG?&7tba@Ah$M!6H3>rs>*Fljk4BduOHe551zNv!vn<`vkN~jEUHY9mu`PL{R`t1B zuztJtORPB$EK&3h<}qHMT60llS5&hl-v0lkM7T?oZ_@5Czi;;vk)5ez5~kpN$70_7 zp*{4IT<#5A%~(B*sYa6RhsU=%7Af(JMby(pTCA*zvPhj{k+14Mb1d<7 z{fDyfNEi!GUT{nbL)S*TFUt_u{2vz^b+_l3;#>8;nBsQF6y3Hnrufgc z|2w9b_>)X=oKjM;XQL+ql!_@19&6liPNn@kjPEJ^WylnfA+Nn#jX&72F8)A)$lriI z;ZH1~d$^?%{_-^amWs{WFMOX}?z$ZPr2#lqxV=GQ93LC@FutH3`F`R2KVa~trWDC9 z@SZq|9O5ViphHd=_JGz4MHB8Qb%ZVM1v?mfq}Qp4uC`X!lz~<-MAW3Hg|2# zXSNLIda0)Dp_>kgVCpT71ndhbtaxc>pfstX2F;e_$Dys7!boohPv2w#5-(1+!#NL* z)K6twYOwh95%LAjZ&@TH*xsyg>Z~S9_t%RnTlUd%_P*Uq=UfwB%N%^ojY+(JGnC*4 zkcjQ1gh8sKOK*PcbG<=UtS4-f!gut_KBsIMv*>V<5SX0*Dfz0$8Jbi)A(;J| zoZ0W{Wnyr-y{t>0Du&efgJ1>c*~b;>K70(y?}rEdjy%|j|K^HdTllZ(jc#^?Sbnfq zxCuaOE_G)ZSwZ;E)+osE196AEZ?@}+Y2PoEFevr~?=*S`Yi;a1z0qg}e>FO-SK$-SY||o!N*^!2KM|>_(|Dl8U|WH;;0N1k zD9>U4ouO_jc6qj}_ZJ#IAM73C(_IOJVrzK^pH2GlV{h3{4xfMNH5L19wv0>Z!Sp$j zyj1L;FGMUtn_9eZoDtdkCq(`$9KYrGOLVB{3%=({Vd{?`oALm=F^rB)t!$e~v%ylU z=v~F)oZ!n?y331fnpxLI=`$2j?QFT}y;K;ahmY0hRIHy0LR5nFkBMyVT?-GdS&uPj z8eFe6ggCg;nn?&ttKl&?*;Y}|UVh;R_iK*`TIW}m84n@u6(X75ATr2hejQ=umT~Fn zYb3XzYo>3i*Xv;gldD{M^PMUKR8g~qNfoTa7*d7P^vIbWsn~e?2bqN9 zL4Bs8Ys72W`s7hdzM}eiN18o(>%lASga$2~gp_E?sQIbt9z|)k|4S4Z{U z(f*vw?!zCAe-2*8QKDWjO-PTO3#&D8h)M9@yIApD*sgFp>8o2siVkOxfPKlmVc&kq z>3)bonciW}z2Jmy_Pnw_ruh5S*{SKb#*cn%^FNg{_O5>XSm55$?rp7mdyyX`CRMmt z@5Z}#S_-^$DxOf`UI6Yz_@H9flahHP*pEh}32;Usbi#k7!yjgsPXK*D+hgNY9{7$D zlc3+^<|#Zpti#CfS^$DNfrtF+ z=07?=B=LHjeyy@>SY_9sW_hfp+#_<(u)jUxgrp>M4WE~86`6F~2A@}sG`1LXC+*xR zGP-QhUXD`zk?{p*BUezPoDe-GZfAP2`@?pWs`{|WNoO^Bk-;Q&;%2XDQ~t$U5&elvn~G*!96R9S?nsi{xY-(uc`Yg|pes3~*PPw@NX z<9@onE_JkHW7nUp^@`Uc?Xz0@x>~RQ8?|1mT08NlZeXR(TJdL%_!Iq7SaOH>laaw< zfElx4X4kQ&rxWsP9asbYP0t7v6&An)8k}K7+iSFs8|%n;>0SQv#6Of(bTr|B(QNN z5w_qyFI1Y0%AO)SKpFV~<)Jy08HuLoNXA(vcuCo7cHN9Lt)1tkC6h8XRp@&nH0C&^ zi?<0l<4Vy+d;ZmJ8ntDKZmVT8`>|s8G1&_hYVlLw<=0boYy{t(6R&V@dkk+l%r%La z_pbFAHL*eMkfl6kUgFz=+j6<@;W4v_zD^$^`f%dv90;L*?c|Xr`|i79X|hL{Qb}tS z1U%EvM@;{`3l(Ks8*H=nN;0P#A*k)G?*<5xh z6h084cz)78)qc0HtA{VI`;r4f)i%hcvlwYk)f9Z61D1Ewqd^Sr)!X)#hLz09-*;XF`B z6&MldqCOA;^E=)DoRwXZFAn7KgBYDyL@W(GTcF1>qLz8qib{1+IWN$d|9Ros62&v~ z|MJSBQYvClt}H6cK9px4hS`JT53c~XsF?C>(*)UxXOK@z)4OQUiTrD)Z>kx81-Ktj z!8(77B);*pi6;2>5QfKVD*HQ?JMxZ4md+ipP9#|uJWeF0=br~|-3DkqOz~!(iI0X_ z!&?s}rKAOi9gsCMAYy_cc<|ZkLP$4<-9jQ=0-;9h{GgI3k-91U$^i|AOtsifOX4<1 zp$OZ9U8UTjwvX$Z9e+trCbZchJis9Uh zli0lrAEl4eFBCVpB;wQO&!S35;l`yR{F2~;!KM_vztC|$-F4j3ymPc|EO3bNOdy`(`|{R4T^78q^h)`Y(02$Wpa5%Yfw}%c-_INZmht( zf^pPVx3zbpw_zif+irMm@Y>|#Dxosjq#`f|E}N|i^K(lrhERL|rJ4ue?(8UUjvekX zww1hzUC0rxOQfdSaRw2=JD8YJ6Fj%+X%X$GrTG7KV*FQng9nY*L^Px_(N3{aCFi8_ z;c)v4y(4QsRe19mp;UfnoBq~mw@1#@MJY)Dwc1Ukvnm>Fbk>GxKzYrk_1Y*MvFVLt#(%{ zW?NmVhv3g)tIN_cx*}-%mC4&{H~*x(J+9Vw;$cY@>Na%)Y0TvO!eOTy!%aJduIm#r z*iqb#AolPd6n7-wZT+zK;7!R5gWqY*Y(4m!SOJ26`Sdu;qqYj(LkhPnfoI1hn_-rG#)Pr z_XMl2?N|dl_{IpB3Ht6K*hB+cag2fOyakx$H@bkmiZ$*o2tIM;zBjjXxzCdjbQf{} zqw?_E`^iNhCaH?a>bk^g{M#@ZmWrKv89yd3fRED?IDxU!JohI6xNg|ch`HW*m2`RdY{U97}9>VXw`AX+QD9`xifOmlu@vow%^)@ zje_h$5vb<{bIWB>1rHoQ&YAy(<=zoh-AhV8%Xj!yiBO_bxe;Qhl4gFpQv zf@lx5w;)8+^O7*_LWk%N*GIstJ?|@lX4e>4(@|F1b6bEZfAAmG1uUFQk$>OUx_{B7 zuKR5qOE?~<`>EEL$DlP%(f!zPbpLOzr~CJ$sNfOtz`R_cM0~Y(|7oX$%^&wS*ZpW- zR)T|y8=xfq;-9eJjGjxys~z=IDpr&&@HZ?Lwht#@*@2!{RT%}2zbis0qvxZLCiq6F zISPz|4TEtm!v#@>>ZJ~tsSJxr4MynC3YZ~yD3`xOW9v>18#{@;avg2k2N~_q9{O+c1p2P5eXc=;=iZFBE>IpR5Z~QDyA!b}0*7N-1rl=$5(6HAuY5 zZ1BP>^s~G{AH#IJm7!~4@>`Lx@N)euZ_vju-7atFT6m#L|Gi7sNBv_JUdaKHZSLm_}uj@W+Gd|d|4S5z{f_+sc?TTW5^3-KHqpy=NLY;Dtfs#&MEZ=;- zm%kbp)azvfqeC!<_61TLR~*WpddkhBeWNzyh30)kABcZ1>CC?x@>7~lv-i39 z?&I+dtmQDr6ij8aZP;#5fw!TRmBu{n*Uxe*z_lj`xSoZw);xw$!E-lmDt6`<5mKA8 zdf)-Z&$nHLRO`OIEGg}`BSP)U7bQrvFryy^)9hxd$9M7XTJv4N3ql)Dle`!=-|t*S z!Pm1j@@Fwrw+aqMLg0ew-~Ax($8A=6U#&|=vdey4x=UDarT&tcK_g4H@jhphw9G`ip ziol|opy-_15N8`cix~T8E^|q>d3E(p#qZ>(KX_R0<-PeXD$@ z^~dOx%W~zv!}v_6bOpTM>Y7@wi;SVBE3GJ zs*JMPTr@tdSTS{Vdr`rGr6!EeAernA`n7vIo2aw&QD%ci`L$>={_S@6YOn}v$2lTW zg{zP5m#51i_Htg+U}*}av$)fE8J{5urVP}TmdD_C{=^=gCGMk{v%3p@qYEUF0Lsl* zjc`M?;MSXR494ylCKx>!JJ_RmqcxhP9zJOeCcpjy^~Esx1eYaB7-SNqjE`l2>GUY= zZ)aRvq*wl_Zz&&I^}ofHPe!LJN}R4p(oF9RGycplwQ0LeScHC)TjJZjYs5p%fKB|@ zz9K2jn-N{E+e1lvSW+ov3?{P(6*ipx!6J;RM#ED8YD$!7*20;xj6;w1Rwu8nBiY;yx z*P^1LB#2g&kOVSbM?r1tQd_OI*4A2A1aS#s*{llKx>C1RJ>zJ_mBl6h_vbnH&fE#u z{=Wa;FE5yT?mgRcp6xv6IUAjexx)1WtwmJni@VYXar9cPR!*xSX!#c(pIg-n@O3wV9hr#NcQI??AK?HU;~tO~L-S zP!W2-^Cf&sfm|Bmk!WDJ7p?)fzI*M0H%?ylJ0NY1oAsCfKJ1MOTX zFY0IpM1AfrJTs(1#C2dBvlY0y)XOpw0P0W=p=!wc)ZCsQer@_LCA`Yhb}{KZTCbBO zN@eh$%mq~&C1U4DnCSd?BJ0WMt;XPypo7x6i1(=4V9srNWNxwt8xF>*G$4mjSO3yO zZuUsMzE`UkG<(&LOO?z3Hhy5gxd`t%SRM2^>~pB{Ys!cD?xa+LVWSXBD(3 z1zEb>>u9pR>tnWD9l6{o-sAq_Eb7}zgzq5_@2TiweGgS?`O4UW8Wj*2ZR;*hcKlIa zd239ii-}k2m?5<&PduOFk{0w|EOkW1QpX&AA+>d*B1bdhFq0bAvd^9u)>Uissh&zY z3oIUo{-;OFD|uzky)ZmW&gPl9yDgAx*Lp--k>*y;1PNaiaXee^xDHb9l$+1cr36L9wJnjogRh{Fdli7rd)1M3;se%gp0X z;H%`FVdrVX@l4_`SBuXis^XD86o3fV?x?r=1aGc410A`JHMNV?fwgqWh5TYEv*?xk z4}~-@ZOOSKs;Q;i+bJ-??A+qEFE4J{H5J&Q0Mq&yDRTc-Ls0UqU6c>Apya!9&+{>t zO)+V}A0QNMUC1O7@jYm^T;+#*g}vtu^J9|IkKArwi*olc;gv;4L@II<{2_zikXtL5 zXxBov&yTHxh-ztR^N~_0y%?D7CDJD6zAEf)Z#M!rv(F4_%X-`l{D8t3{}}qzk^)O@ z>Qj1UZuYn8Zxfqhd4{#3^QyXMM;4SE6pYk5+Eg6_(MgOLRau$UpGo}uM{-?2VfUI% zHcJ2{UwCS2<;_25m4;v(K~SkhDwkpe9E|8+RF=vd2NE`Hb1~bXwN=S9IWc1h({KFb zx=8yH(-@Q8^upY8uAvRwtD`D3ucy8WRBKWH?XKc{?x0s)I+6X|j;v|Fd~1;I{-Hy= z^W86%^>Z_@f#BuDi!sWZ2jXtLSRkn%K7li!3AtZl!Jd2j0DhkJnO>Hv!Q1-5bUhH!sS?qtX5>N@9gvpN&p7=|kZ_1n3}3wE!K-M}*xfzA zh?Alei=J)8nI~SOz)Uj7XFuz1wQ|~2%*n=N+a8ug>xL7_M@}xEbava9 z-?R)}piT)-qg}y*DbZd&UAcuV;jK~ZKo?!PP4MOs)wXXiH|SaM?DM)fxNwLy3iVg=w%X~SC%`% zH`y-8qeVkXp}(G~+*tgB@b}UC5SK|zdMw8OIEPDIGftw^8HtwPhW_I_hgrfM;!{u+ zN_Z3rg}8!rT}o2dz8^mq`qDp-9}cmdGX1{ZYTudpsO+QpxfZE~p86OD4yHebsg_1= zFDzF}iu&VXWg*Pe2c1f9z3B#Ac)LO&6)Q`Tjg z7{e6)sH{kzDA7=>E@EOnlv!Fnr1C8^y-+RfQ|mT+ERy)kzc1lhnA=KDiA?`=+fyr& zb62sZ{6um8P@M}~MITl>ne$G^_DW6P&~R~L`i5asRtS9<8iKOz=}C(O#Z>snTIxT! zueLPG9syFbTAtIRy*K&xj#GQF>h(h*DZZAZ=Jn=RM!CS(XS6gg1R5C?z^2wRZ<$6- zWr+;pq$mUeUI|rit?RcS-`X;le;c7<8Q4Pq{QejG>EM7vhahns1NLM(BZmgSKeS z$?d>df_UU+G)B(o{G8F6M`%c|I*iWu(Q%vKAJcJFwAxjcd27W+h&z(x?Kfjd1}Mqb zy9gwr+V+e2mkw3b+ZN?cx(tl#c0Uhr4|va%iYVGo2n}n=uGsnGky4cvx{bqp(l0NGC6$=Fth$mqU*)XZVzE*^?xgP; z)BJrZWVo_m*N5y=Y+p_}A6me!(RdAHluW0LM;`QG*RsB>qA!fZUd_>B_%eF*fjGf* z*jmNMhbrQ-2EJ{{aRy*NKZKik8~Xht?fOfvaF_Cu;>O%(+@S*MvOI4HrXv2BvNQ0| z3k|mAvhGb*1i6Ebl}zxZjm59->q{v3nW!;5-Iv7YXX|>D7tSCTwb7l6^AKV!v@snb z3BAj{Bh1Ya!o4thNo^2y%iN`&5LZo!q1p&Bo(R&{MrQPEoDc362;*k@I)0LlW$CLr z9qYJJ^LXg{@@8(Ke?vU4zlOuxoHIt{1jsxf&oOOT0Bimwkya_7mpK8h2~qQ_8Ak9NFRv zP4$D@2Dd$R=CI{0qk~j0Y}&e(zCq>Mrzm84^I$cU+rHI>jeAzM9c}ajY<(dOz(rp; z+bTjsA<4?3OvUj+ZG$^KRNU}2bA9D?=}xuX3{E$t1^Th2IqqM|wAb0veQ)ne&$WJ_ z6=SmZtM$x8&&#b}7Ma(m7h2;EVu7eF1Dq$wu?0=9RJ-Tdq#e+^fEt=L_(Tj$)X!E2 z`>|?+5I9sh)ZZh05Rrupb6>z2FW)xLcoAbGWa3ch#6^To7aK?SaCLZm@_i;x@7Aqyva>7n5z? z^YUjdDbXW$i`%;yG_nKk+wF@10-&hNF7P90K|=gEW7^3q;sj_uh)c~trt`h`epBIP zw11%5zq)PRkmi>>658ho{s;+}X`JuDX5!pDu<8vkILPCV1z2gK(6T`!&o_A8w-k~ zpfM;PV?`zfoLfs#4az0|E@9z$SK;|R#upD*g&0OrRlb7UBvcRwDMnUFp=b+HKIt^1 zq5LvBBp87C9JVPdOU&^Y<|91@)kJ_LeWUnU-0$br0FL*A59gidP(ybn@&5ivFJAEQ z@0q|h1ZZv#Jjff7m=k`)$e=WRk`kpA^#n%KT>GvMF=L_m9uJ{65(j^Kq);F;sZzdrl-b}JRLe~C9YLb#vjdg8HO9?g+G#G)!*d^B3S%314_0SX=ONjQy zIFDw%Hb+=!5iLI3Wz~D$so5Tg1iJcFyxs1zMZFD9dScq_z z9&H;cufY7-KJ~;|Q_ni1rTMheQ^Q_wIfPXLWvM47o^|S^)0!s?*QY_Lwx`x`mBQXC zt!Cx-(9>&QwYv}7-mXk#dTqtE#yIp7eXQ__ki3o6_UtSw@Z(s+~MKeEP#ljtuI`qzMSns~H z#b#jW?(mgjJ&Rs&B}OP#s%!CEx?*~9+Z zM15m@nMV}W$FgV?aiYP;4cT;k-}UwV?EhBZ4V}JydgR-8fUj?okGn{ZjobHt_Z)oZ z|5o3bzRcr`>RWkkXU7h8I+y&P|wl8-uGluiT4a!+DVrVv8pjTLR0pO7y%sQBeRXby8d zWu{g$yt*&t-a3c<688IPAJhy1#M52wXH8}**4Iat*<7h zSiMk|V`D;BL+%s%$_-dvoEX^2ae?BNMjpuaiQJzo-J9VMZmud|55iOlW+w6d_^L+r zx9**7Oh;rA=iVN(3eBsq+@d0lP^1r%Gxud61qxHeT{uH1iVJV#WZr8VfwAz-&6bSp zH5dp0fqSLe)+H`~k4Sb-cEMiBSvz4WaJ)p@`b4tL*7fM)7nJlU=BJhhYi!GbOa5gY zxWD8?(A3A4d9`k6<$JR278#tGnzJ6<5hqH&9nk%UC);M)$Nd`~=Hny%eiU4O^T3CP*Mvp!(N!Y4If|NV=A-%JtWKi%$MKIBB@mC+a+%bBQ+2B1c4Gr z2W#JQwzmQpPK|H|zKcvM$xg;z*_Tj28aUR<7{wm7WaPqiJgwLXDri3B`J;0=7O z*@tvKAtiG{cg<&eg0{@1*pi1~LR?&rWy6h_BkF^SR}~|6LGQpaMC(O7Hc5yb2PbMT z%vyKaHDL2?ccLCk;k^5gk&?kA0eZ8&Efe;vtQ0ZJeP=St5Mohql_q4Y2-%VB*%4xM z{0cBtGrBBO(Q&lO(%6u%XcswKDTi0enGi2WO{~>M{IaYa#g;h?5plh;O^ArQS0^fc z#~t7w4fZG^|KAwocY-?&@~7*W37>)Apl*siGrCrCHr_ORUuitu%z&sv~ zb%xDR&w7$@q{r?c4CnL@JuoLltfFR(Hh$sWEUkQnX*fin>C^E|nX#Xa(}@JBqv?3s z<#|{FV5}El*1!a!u`H8PTB)1+9ax{t@qe=YwgrF**Dr9p2G<iIA*H&gje{a@pK}i zx&UsxcxAMJ141a*#J5!T*JjKWx1Tic78?-`eUqiFuGSify- zpZqjFQ@Im`xf2=j!?P~{Jod@|%D?M9F$KMY^6%jDU+?o5cg}^Qsz4Ire?{i5y5 zGLC-8oY>I5`2sTtg8tYQ5Hx$TX%Dzk^4K6ItxuhSijq&nS5B3gBZ<*)sIM7YN)7o@ zZe+1DZVFHoLOsSK$(hd!RYmig^0^B~oOf`gAE}qQyVyM|WpB4@($=ZmOQzf0_||^D zAzP;luoN{jjstpDHM3riL~2ZvF@pg|K?9;^Wx!1Ipq$-Qv(xzUOgX>zUOsb}R5 z^Yx=>Jv$Ir3bzz)!(y91!3{uB56$#)EaP*WN5n;EM$<*4CJRTt=y2Mg;^o~D*=4L= zN*`9q1VEMr9T*{Oes&jhLY@yO?yM0ZWMuVtRh0lP7~MHK3PM_+Z?!6zB~x0mNF%eK znz$VXwB>c(D~h2_2@fdxMDG~1d=%Lho$)Qu?$HBUmh6PkcFhvBv)wuyUPQCJvz;q? zcjuf+52OPP)iV?%#Kz}#Awcn%f>zKbIsoZjjo;nNSU3QE(@$ff*hdlF2&CiobU55+ zDue2vRO4hQ>ONZISC_K>n)@3#*~Dci%2i`GIo5xhU{uoIvZxL_Om!R+x5wlfbhoGu z)(EjWUIn{@AeQ^SPyNGFVi3W1oPVy=e<0S5VR0Aygr;vnj(n$BXg`wU{Nk7COk~qf z-bexJCui$PKdEOSIj6{`f}6V(H|!ZM{KlpXZk8b;EpmswIU@D82X7)O3gKp1E*L1u zj{SR);X1j$wJuf;U>Rc*h>k`Q+#=UrH=TEOB-GueCrF&6mp_CrQ(0SEn@ZnMH(ehx zm(~VV<-4l;Np^grZkr}eKsS-(^1AVl3L)6tm+fMUBe%(I>*L{BY?hic_$;O$PnoF7 zi@d5lg<`k|`LJF`=nS73l%U&Y=wfRz<(d;C7B>zkMNR&qPTljd)l!v*qAF`iNPE1> zBz}tGgCpw|zjaf3RK01-N!TYg5JCAh;Xf+rfPdc^mBt=?9!>Z$OZ~Vsg3x<}3|J|~ z`(!{M(j2$D_^@88z1nI&vR0jRiYnOBKwFXKS}mOuDDJOdTTEFdiJPF%XbmZo9cPnr z$SMwGtR{2+D7{n@Nio~_TJ3&(GWAE)vCNE2OrJv16YEpM79~60prD{80~STy|5*DQ zYgIXRigg`9#f64re=_Vtib<2%4x%)@fr6w;)C+z2*e|sAsBnDJXylaxt<}9$%^P48 z>>E_QEQBWrX9pF*8|#LYpxAyKKZV7Sk+j*y_G~~>O*dK6|4Gk z&#PnXco~?M*liYqJG)FETAH&-V`b-luMc1!zvRpA7=6Y#k*iwYQ?|y-4YkiA;a(Pc zIa_LgGrqf?WRM>HqwUv6xUiQHo-4=srQ+7fZ>{QlRaLF3?!bNKu2E#aUgxV=>A_P)Mv;>Rc0sH&%F5Rs^s($c>SbAGd_pqgRuQMr5{BOp`;tjNf zKx_Q3pnZ}Bv|A~_)eE$3JZQVxBpDnbtb=dPEAmw>`mrPgp~!bt7LXb=C06Md5zry^ z3I|(A2s&Atd1_eVs85V#f`N{l*}>tre!)w!xa`JVC?Z}BB}8Y z@RK-dN+=v}A1@uCk8Nxril8Dr3QH6Aq^~bPlc{+7a482&8D9;|K|+nJX#qM)66o84 z@Xw^|m>{dTHs=4Sq|o7NJs+Qo{GDEoB~N*d1Fd4B_8+0u*gsdC!PVf?p;50+iV+ZM zl(><3t0i4j++e=DODNQxPS!&EY(MP>hW1}{a;^2SYsJ3Wiq zmz+76LW)tUrlJ09?=E|&Ol7e)az~*SDpuQoBsJ`ni%B#I8b5dO-Z))B@aRT5p7Fq> z4rrW!!$rz>(0#yho|GQT5i3-?Zg?5&Og=M)9a@e4l6?grum;(eqNPaoKwLmAS$CyR zR%^*__sKpxE>;>6j{O)W19nQg%qJT)wr8^YN#;KAASEZpV$mNZZWnM1oqshJF?ob= zh}0hVlrIZ>0?xVZh3z=fTLOxXf&KO} zTQiB968f@6z5ra@TOhd=kD>Poc>X)l)Y5%3+f8CR4LdjmDx5(=$=0oVjfr^=Em}I z19d>p38LqC(Q|wXwwx4nie%Vx?ft<<+xpt%3|)RbWYv(@jI>|VqR_Tt0PVK(KrM|A z7s>?GApoTUM~g@bn93@1y9wCSluNZm(g*{kB9X*!YfJ?<%6%n?9O@pF#hFRGcYLhj zw3hpZ%@!CbV+roR+;@f#ZItZ6Fj=D|JKiTd;MiDcM#`(hWL~iM^2xp)9ZP1!Jd0#b zM^WT8SWt0VGah>BvDqI8d8?AwEC+fUCM4%hA4pg>|2;gDbGvA(w7YlgVPao%6?r$EAWpQ^VFKJ9Z{Bn`x3)cN61o6Y*FtIXMO$G7diiw%bey z1HDt#U|BHJiBdmNn8;W3BR|DWNb?meo>QD}PULbsV+jL9mD(&TkdW%t(Crne`EU}(7(~5!PesUQRR;HVkOz6rbQ8^$(#$Z-zer5uB_K&!`QX-J14I# z%ifMz?Ve#a2R+;mXL$A)K7@KWdgS>{oFL87UjRCBUpF>g%TonU4X$h%w`ycE}iCS@*{aU&1V@7W)~gzgeD zsf}DSxs(G}QVZ8{9KJh1XRa(95*@{O5_VB!z# zU&6+|n@b>FYVB(}ewg2dUmlto@G5C9In3Kn0~h*H*T5yIwcJ$MO*FSNG6ZZYeI837 zd99s2oBlX^2>j=6S6ktA-|M>>Zy4cDV&)6H3*#Cwk`=^SkcVCVI7RIe)bY+F)~- zCCX1x{rQ@^ea*Vx!PXp=Q72Y!CgHXYtDAKaLi=wwNj3dC;>=C7H#svr9}KlGJjtY$ zKsLfc$@WhTe>T9DLraPYvl=yyo51Pd`2u)KexoJtlr;dy3RmLaOu?l?`9Kc*PG@0YsoqKpE;QwmKWw?x1hAbV$B@FBmon#-W+R zmS57uR$Z$zPxn;%liZ)fl6)UW4`XeyE(tMl<96~&F)|PHEOX31jb&2)G2kdT=f9p0 zHf0F(i}4RMxq4Jg`G6Dde={2(Viotykq~Kqo=C;~xN&(WZdBf7#pV6%zm<1$^ zpYx>{M)GNor#?xZ3`muU^DN^DOX(Q;T)s-TqxJ7>s@stg`tPM3jk}yR2x*z7vl#03 z)HzPLispUir8_1K@B7jnskPZu>GD+inbgAdsKyPwQv;W`J=K66v1@AHvmwz_YjZmC zb>W81iA~O3e$KL+0eWG!{Jdo>33+kga;7$@lGCrt=cZP^l^Xa=<|uvGUB3PuOi(nK z#$+>uR4U;5g+6f4(^Iyx7OOpr&fW%0ezX)N--neM;KZ8QZlCvBIytA$d^$m&tA_i} zD=*0nS*G{nc~^pk06-263-;c^@1R zD-Yb4xLqla_97miB)7si*_E>Fz23i9c|fkg5uZwUXTx*0qeZ~{e3ci+dMS|YYGxO=5mg4`Ege&bLE>-)*w|Y)1PCtu0NpGAKX6g z4AMfN%=ejZXL&={71Pu)vlwPUp53H){}rB{bX{uYds-?pa6Oyx&zyWR6Qi)!e*H(a zt?N5^zP?>Dg2H|kGB)h3K7PPrTp9au?F22y9te$s+l9>Fp1SD*H=JnZ>Z#m(*XL!^ zqqASK$19v#x{3X`@^}2Om_AjeG>{(pF3gnz%DV7}qMZ>oD42=0~Q#*&U@SA16_XnQlsti!;w zx59+zwK<}5=H!bzN1}3Ay*l}MR!m`ft~+z`j~9dqOD-Y_u32NM?PJ3S_Qv^{X)=z4YYsdSRz0k|prs-|=@1I2Kq9uW7*`}1KmYiO)lMflFIFQy(D6yUtl?crgs-l(=QAy6QeiZ<6V=&nE5> zCIjIlTkTx+{!)#HQz@q%}p;2q~K`^>KS++BV5?zMDF z+^%U0j5x1>zyy|y6VRZWl?!clAds<$&8FXtZ>FTh?A4B6qXAOs{+Nx4y-vl6o2lBJ zM>pq{Qv*#sC*B5A)}o))FXMBnO$qI(LQu`StM#VVrB@V?ClY_B$_m6XT7oU6Rl13;ty1-}JyT>mh=$L1l^{TP=4r5ITboTNAkC5oJcR<`4a5|nx<6(#|& zoB3Xt155>5%Rp{)hfxQuI{46@1Ux64{YiPyA{*L`(f3SZvyCzg4KpBs8k-GVs*LVf z-!~o_Pi|P-g5+)_wcDBb0<_WB)VF)3EXuM@(1!~}X9#jwhb|=Cy*8^g-0qrB_}N}~ z=_Tm3mMA+)5iN=+QAAFmclnWU`^9MPu0!Fg2Ow4teUqFyPW^t{2Ow`EBNO;3g@E)5 z*YO#Zbj0))cqto1KK@cm5(l5bT1K`AElzazlG}oNFi(-wAMeG7!#69qj5LJrp1zJo z7Yfz7;mn)~6vlQ1^{lN5r!q6%q-<>oVV`B%UOZyt1;|u4`g92JmG{5ZjG{-@9; zq(1NXa3KgRs{%^g3HN@D@AY4#5q;Tfmh8|z{DBJt!&CM5HCXlY2|kuahA zV&2zclLJcJ!R_=6a}#G6NXd@h(g0q66uw?Bj0A}*eK}LDoFH){vCIT<{!|XxfZyG_ z;8XY?s3!6y-{7m8pO%g7t zdzw-$pFdF6+FLyhE^&XRqTKx1uH{wFuqo8`XvX5hS05xCEOq@k#Uaa4b=|Ywm>y{o zm&K1~-&MsO@~--7Dn2ppGqh>4U81PB&xr}VIjGB`r~z@`wQc$P@SU*0FD{Sevf0N~ zQB=jHu_&AUd&Ht#!@5J%>oH@qhJ7zx=64=y`_p^+# zt!P(u0ex_j{Ep1WG?%x2xf$+ke-TDdGous*lX--4Rcd;;w= zmTcB4)vZdEp5ebSjgU&;be}4z+0PQs{{t^9;9&im%}uoGU42Yr=ZxyG9J;v~wS@C5 z5?m#qGbePXZ&pADd~WJ$ad7qCk3(EdIl$v8bl<5mclv2?>hRppw?OqY4 z#p9E7Mx`s>HY%+J^;xY`>(O6LIRSFf#)(+Ckc*$h#1I5Eu+g-U+| zrqO_P7P4#=e=t&>QmtVO=2))aCOI@xD|5OQEyDpEFi+wTC094K1@A#spKjd+%Ua9K zq)M&pd7gSx>6&V#TG9xQD$^XRJ-Er2dcR6-${fzp=`~jlPGu%DdvU*_g8k=zqdQ~| zewCH3TL9Cm*@=?oUlS6RcCdjl;o%G41i$IEUp-&jP( z9O+{gTHz02WIsZvvRwNS!lTXFbXtpLYu;~&@b9>2g;&Hx>-pNuofb4NUx%Y%IeQQi z4}QIqtpvUZjkjDbRZ!Szq#*gMi$sU?jUJcZuN5siSS(%;Lbak1obxSnVt4u`lSJ-{ z+@vIew@G5<@v!m)yysdR{x6o|(ShdDp!$(JDhb1uTk8Cd$IUZ%Cy%X^R?HxXD)E%h}ZuD`q-G;zRpyOk&M; z0B@~Zwaxz^@kOd{6^D$6B=!r&L_ZvY;S`w&yq?u|xwrV7rFAml*3FA)|2@FG+wFDJ zD^D)AN6H>vqa)yxB;XSy;1h(KsVsMaAV}F|NExeR$~Z~3<2cintbc~kn`rXUbIHU-yP;@}o#9knv2tufbRsP|~N=xF8;+P)&+F~OND z*RfeV3Laiq*RYrE?Mfq2b@TzY-y2@iN(p82U z(^V_3Jl~EqOq+5HDk`j+gI}j1C=NfF{Cd78{67gH@;3qbo60{J zbpt6QUlT-F{YA(fnZ%IO*~16eW$u?N4TLp&1Hu!r#uDsdkOYa>jb|b$>+aklliaNRQ}=yJT*LqKwH%{-@Mf!*aiJ({=@LR6NF!$ zM^tX3acR&w8^WuLeTOG#sreiYlcvY&f3So)@lJ#Ix#C@WRK2H1=7drvMX&r(in(Ow z$e*!q2QLk(hJ9foGelMcdZOP_^8Z<}>BJMCNpU5f)I+8Jdbmm#6m53&l?3LGS_$|! zwxX8y5oz`dr)~|oerA;&J+5EH#)6x!`XSW>Rr3Izj*I;vi9Puc4oZd(AnckbJv&N* zn@RjTK1j9U<`v$jzII#syFI}AY8YnS=Dt^6}*hOB{ zpz10M<1xfNvZurfU0wbZN~U$8T@NC}Yf$4VhQyKkONJ5+N(VQFTSzm*ch(1nq(r-I#=@3wQAb@?d&K#Cb^Od@ z)8B{w!}P{HW`whg%-vT!o=MKUg{n~jwUR$-<|jxj8)CBcs2+nV7V#Li@Jd@5;a3&X z^yuQBtQF<_(7zk# zU+)3vIyfj)A3fn;DjT54zfs_SJCcB_C2SBC7{sqg13`}vvspPKHhCB6F)54~}#GNxNu{#6ppQOp)k zA@O~e*cVwPao|oHsVFZzFF*5^s#y!h5HYA4m>1GHJFF!ne zUuCV{2vjTJ5>K@s08lW32h@Q3HP#Qk!W5xa6A#NLra5wUsp(0Av`QZ72L4R7X+ zA96!CQv5eni9|54QujgDexa#-VncUZ3GlVPW$U}v_wrl8Wo4tuP#W`lks;pzHy7oi zl8{?eU69tm+t3b~%}`~PJY(ukI#{>i*U&ui5LyABXTJAKT1ZKn&mOgV}1abw|OCHyX6+l`gotDD`j0v-R`s#YomdUUAU8S}+?_97n?Lg?!x&td!Hb zeWIM(?@vxnDnrlKO8t8$8Vf&OWURE9=REiBuE2GX)M7C_S8N2&>Omnq|H8i&ByPE z*M07Xg6o`^x-Nz90J7VL*}}d@2S&~1XQDKpU04ZaofhL zuuNM@k2HMOM`tn}Wpo zdJJ1Q`54COs%3KvcT6le56lzgin{8(I2Gcbbs0)Ri@T#4Fd_qUW2l)XaN#SZ|D&UAXUzIk#M3|Nw0Xv=sZ{@7tpwS1T5IQY#| zYm)b0Kbz)q4aVZe_Ahi+Sfp<)o{QI<8~zW|G?)D@Ub?4KlLz4CSVJw;HcIBrj z9>v|oq8DfN6I0Obl|{P!6DC(Fal4J++diz=>-J|nl5W^NR$Wu8-gg>;KE&VmatmxzBjH$;q)EzCZps7H?MbrD4UM)Pp>HZSlUx zNPVoY*pvEm-_efUDAiz}%9HweA@5wM?2f1MB2uGz;-p5^#7KP?_7SLDeRvF1BlUB_ z3a$5`PWLz(#cnHcmboAdm3M{7JSt!Do$mHF7aJxsR4PA(Mcw%AjN9E~aGA6EiQx)J zV?`Zi8}G*Zc=!fy1m9j^#b#u=H$9T>-nA!ueTv{4=HWX#ZnPMD$`2I%LQ$5B*04^_f(6+xpEf**m?kq69pnNCu-w zYP}+Ga>oto8`$iU0ufbVH&G| z)s5EEpX%t=iG;Z}RtI~e>Ff{bZ|9m$(4L!)%dJOisvDo2JLhTO<7SSIz4@kHQ8^Zd z(-VYNzdM_A&BTY+HBc-j%eubPuF#-jd~maPh8}hTCq^!lf0CYgNqS96vjxwH?Z*>2 z5v<;?gyAhk$&Pz@k%6wmLjkB)%XfnLO3>C_+I%K%^X8*%lE^)3`%2+stCx)sTMy~V zUJg2Z?bMsQ%KiM0AaZt;GSm4qBAk!6o4VY^`PdsfVYl4vD!vxPj~N!uYS!-Pv12eR zH&RLxL2oxuwSBW$OP|H9!WD&!25sCiz`Cg=-x1caMZj4j`6dz`DKg-Ru}NAkKwh*% ztZ-Z5VAW)=`39zkQ0&GjPtF*|n~pge!ZUj;KRxXjQ6-Ol{+Wum$GgS$@o)b?esZDm%W>}`?Zwb`eiR5Nw#Z8WNr&j`O@5-1xBHip_?2pHn>CnW~yd# z+=okHCGITQMb;F-x}CR@-rPB+=d7bSBuwV@{UqPR-WRt3Opz-;g+(3BP`VFy+;jX` z{lpB-cQoL%ScZoNR8aIOP*I_ab-wNMteH~x*Z15>R zg+(^cjVNIEAl7wMe{M{yezU#*vCvfU535ndS}*7aiyPb9GLex_>X%`UiZ%ufo7=X& zx4)>+oBXZoOKBTtIMF0g-a9V{mAiL8gSP+3%=uco)i#t)SzSck+B|i!$nxHRYBwIk z2YvSQgJRGd_GXDtdF&1IWZP_~STdvT_%InGUXXm9@0M1@JAK2R@>5u3k)24V=vrVb zUq3OmdFsZ^h-%lh%;095jAUhBvsJP*unu(aV24TZJw43CeW_0SEQnuVb?1FA(U6i_(GBkruW79e0PTTnz+MNawai*XbA6v3wpx4WV+1;15r@%&gwY0 zRosIqNcC5MjztF-u>3Rkp*ujJU2LEg7}e%~9!3iT(|F-*oNzXd1mOTE<}XWLdyx{- zebQql%61Hg$jR@@r?Ko+CI}Kw@-Z5K{)I3D(CO0zj`G;vQM*-qNn`ouK*`vhG%!_S z(Y7kgTzwUPv2at}Xu8SXscu}L>r$K#nfax)tN+Sia=H5W3sY(Aml3)ip=8a-y$dU>kes8(GM3PGtb zlNx*t>=sTh@xkl_aF}nw-*)gV7{ZfTjOLy2Fv5Hl19+cLLS((FhA{h=`x4)>I7r;g zD{bwMCAesNwHr6fAB9A|F%NQW7cB}B&7{(-$ZxFKiQB748B|=yL#7|&@tZTMej9wm(eAcO=Iqn1p`$`X8)x>->M|{8+Xmm^p<$U z+D5O5|GDfoPP28N@8*wKlTGjnDSl20Trx`%odookO$cFW&F;~gyToIXcoHs;y9P}e zyuZMd!5QqT%kK4c4{?*fD`MY94p)#@NTkqFB=*;X|5*_#{%;ijdw)iu00;#$q#C-- ze;ibN_>v}wk{v54)AjlQC~&T@h;2Kl`T2GsHNWBtj36UN$0f!wUX6{aFBLravL2ZQ_R!6wgD9L!=F@FHqTs>%hFWAgZO57rY(vWq zgk_GKhO~`3?fy0@v?2M-GCoXbt;R`{GN@<(SgcJ}Chy@x=NPc<%h=F>c!A6@4QOyV}cZVldF?4}9(!;jFX@D)aA&z|0 z<3q|_Rrwi+IQ!;TCt<_83Ty~7Aw|(-UV)i7!w0h3h&9==j~%86rC7eSiYXt>*Ob%> zKz-7k--uXcicQ6>PnF2ymd21MV}jF9R7uOEszdrXZ5S2JlAXY8V+FA0XA0r?9{kQ4 zFY)`PLDWK*bB$gK7Sq3}oG3e&O*&GV*4sc1GE9C1mrJ z_Ri%!Du(X#1iiEHk;+;8dY}$6O1c@KR|NK;rh-;uMj?LQ*^05+>86)VSA_m@&n&Sc zzZ7deh?-y?-DAyah~pKN#t8UGPCz06qp)gwm6sx2WS zE2@jfb5o80S225nxvpDY(A-}0cL>h%!EKCnKKr|GjW-MyC(a?V)IGuID))waq=Ihv zcbn2b1HAs(G(Bj%(I8W?SPE6+&Z|J7`@=i@O#XQR_nOO0b_^43S%0;SR1s*rXa_$~ zVHs(~v)=(PY@@ttv=TAtsRMJqt1ylg7gYWH@0$0#QL$QZ>PfM^#J8Rk0WP7~ZK7f~ zFhl4PKLvyarfP^;zjat)i7M<)Y(+}fevZZcGm3kfT;kGtkQbZF_C!kP)E9$!_(*SG zd8V+lOlHkiY*6(H7{x*xO0UnHz(^`VcGyUHqkTyy_TfwRIO|1hP3gt^$)Fm(qrttx zoxy8%KZ|A>z*3A>3eF3y(pO!lt5p}};oR=^oFkF_vzPwQ;uf*7%~=l{+kA5tXc)){ z1T=iIRfvZ5)rN+?G~G>`U~w--agRqdq4P`RCr}o!Qd2dTM=`P7jFj2qWL+^k+;-h zl%~?Sn?AGi%BaEI9WpoT$(*}h<`0A+#j*H;gk9bc=KU_v8*#bEsfnc7v*22y&2C%* zTtQ+yjTFsxl{5v3bC7x3av~3!0U4f>skp7+Z{Iw)MUZRD!fNv7-iG~#B!vL#8oI4G zUh^r8PxS4X4sLz6Qz{C5<`IAyUG=iTm(xyb6c zEv%zpKF&ozLYI!2k5`bw%*Tre=r8+?N$T+9l@+W^a9S^zJr|h)=*#2&0`-^fclS%M zh}t18bI_#3T@^(=a#2hiK^FJvT9iw%t0z0zdl?F{W#g$kNmkrv6cQAKuf4PfU;E3; z$0Ip6Y$+n3gv8Ro_p6GKD0gt;FZ6s{m@z38(vViCXEGwAwa$skEnG;R5#zkU3DKLePgP9eBvrV~stsm5U^eim- zn%2m4>U)lbw+Pr$H)}5`@|Q6OfT>ox0gD86j;nPPwp>3{I{q8i^_f6Yim+V5mAQ_f z>X#~)ZqGdK=?W(pxr!wMwXDk2^J(9NtMVkJO$urf|sc(YE zdqbXPZUHrL@-s3YlI>kYV!(m_Za2SC!n=)1LX65J!Cuc;UYb$HdF54~{!KMqs(T~Q zH6zgDp+%hvt}~>g92!}G+04S1|3A#^aM#VA;lKpXI>qN6a)Vj=h*q*$12A2~E2DDr z*vkN|MJm=GD)^5Rd>;Om3SpUcm-!80QRX)X`^l~a zitW;LGgVAg6eNXnO&YP@y(!OaSN5KnQ!-t6sFYpbrckQV9bJl9JudLgrZjVXtDfT9 znakV_EbE&m_Mvn8!xrXbD3y47IwDv(&e=fzR_oExHDz}bfoL@{&8>7J4zg1OX)EWA zXdj*f-EP4R(u|wd2U8}4-g@Z*ki`#YV{-4_QY}=ViajW`AF|v}^5>4DSTIt_@;)B@ zhAq6<3BFpK4fTucz{FCshzTCRf+_LL$4>x8e?c zWEo02)rgA2ykGbx;h~JK#{(X`O4NuHHVaHTVk%GAk2A~c**cvRenP5raqA*p7_Fe& zr5Z|l^Ix!)xusgZmDn0alK_EQq#Pyif)Ze%fExBIZWh$65ppt*cJW;u_wTKMtMuAE zW1ZA(X2t~YLC45UY5FRK;psPtr$Oo23YbNWgJ}OguuLksa2xX^g)73q+COnBTi*ma z#wZPE?-{YisxZ)5O^Ff(N|dmpiS^c<_`_mgqcw;}#n2@pqOoIRID@j({i_}-jupeI z6!&*tF~e=%)cumlpe$}MDBOd-OMw~sVgpT7(fkyoDzsoxRh?Z*Cd|%UdPh=1{Xyq+62hqc+=&c!+^(JG0w{G8RT2=EbtnGuS5FX{Jja^687os2h+HFX z@9k)WA%&Jhw~9lAg;~b%X|Va^ODar|x9K+A`?|3kb_^LglrS0xeKmtk<0^-A;ZI5; zwx6qR)K3kHwIzbAQH;%&P5Fvj&f}gs@`~dC!>7sHLEn2q0}~C>g9z} zv!iKB4|-V#SfnF_A4EdNwkGR=gZ&iYgddIW1p6T~k;>kJil0$`+9*^g9>>xybmtA= z0;30fR|j)6IH5n>DLFT-jg&Z={J}bp2xoa^Ls#D0xD$$;@*P=G+wqE}aT?9~EKlT+ zwwc6Re3A@Ryi9;@;}yMkvF|ODctWW~+0VhogKzicgD8WM&7+lZtW&4hp z6}g8HKJYFZ)cy8rxZ!bQ`nHK87 zOnYYAx+IlB3LZVYKAQ82fSeBFu1fhhd?I;xpGw1j5AYQ#p9o9PC(e z=@Pd_QSE*4SN=h{3#JIp(&^Gi`ZGK}X%MMLW#INA*|(%E7IPLQL#5t&hx4%plxj)h zXQ@6$cM*GeVAkNm{+Jw8O+fGbn|U?mLZ_~8ccTk(z>=*L42 z>GupJGVj0VM&0Mz!MDts|wT~;14JX$x;vaLWmV$DC&KIrReVV zOz++`^oA*rlh%daw*xi@h1m3&GjkNd2A?IZ3Rq3@jm|OODDC*6^^gT$=sjZunw5;h zrr-+|yM><9OyY>`VnVPbg}T4~Rzg4{cGw{nrE?zKAET%j2F9Yyt97kKxw7@p=?qV& z82TF<7Ec#`bqs6%uLpnYpbGdq)?Wj|%in}(dL!WxITRjDw)ded@gbP0c-)f6_(8o_ zL0Ic&(^bFYdt2i7{EDHjjS89)QiS9br2VukF^OpZLzNp?SCY!iR{uhw$qsoD<`nK?okk5-D;Tza(`0sMAcf+X0GLatJp^R zSRJ{t%eK;}>i#T0+1%1~UU7J{0I$y*h-U6mF^es^ zI6aCgj~^OnQ*=MDDA)A`eDqrJ2(1Udyy5vJW&#;9tzmCri-maBoYMPW_1ElDO+Eo9 zmXwvapA~6g*7`q2-;TfGXDS)$8b=+92{#Gvj&{~r!2I9b#YU22aW*1&41jotvE;5D8;^*pHfaMTq}#?D{S~i4%?5sT+2PxKGvf)C=y==`><+j=O%1=LuVSOr zXslGVHLnYZhMM>9khJnUrtl6~9t=BB_vmIaQ6{RjUCm9_+HlG_NSw%5bN`GX5V?OY zjdG6fCGm=EJj&dgREEmk5InhmKnK1AbEPsxxPyUQ@UEH{D%tTn;0qEzqf~m43xdQ6 zgo3JnJ<2$EIkN?v{hat_gE1>R=+t4{c&@eJV|^4yzRX!_MR2?n#XMm#vXx2a>9@ef zX)&Px7$u&wapG%=6LVj-wLNr~aSjr%hM(gJ2tQ0U(B|x((yAPPWT}C0TQHUTw}2NA zrS5yh<%Zu&+)hQ`ak}D%^aG0Q*7=Y+?IEkOD_}&k8?uXyB~|a|gxvg35rbZYq%@28 zf6CFtwt$VN|Fgb-Px~W(uaSqglT~mr{N^d{j-jU9t$E$NQGLmoH;b8zTqH3CulYYa z3e2QqtnvMIZ%V-pTb}F~sdv;h!w5fvAfGiS-wTC)fXP_EgUnyCO?`ghKg*=@tHGs$yl~TPSf|e->SY07=2c zddnmZTIaonW;fb0shh%NC_R!r^CwI8o%m`m>x`A3!lGqT*J}msy}#$j>L;c)zl@6> zG{32<+O5CCO5AB9_-ez7P5Rubdo0;4YkR`CUJ;b<;Tz=P8y8>gW$-CKsiI|OpWY2< zTME9g{@P(N{8&HJaC6wt>@qGEH9)AVvM6`W8boDOC@RLsMe>rIxtPT8FBqN(k>rCa z&<&Eo!09)YM81Jx3pEk#O{vTrZwGX>jL{I3j+`zX#zil5y9wfzeM6qA)>uj1wWSJk zo3Uo(THVcV>mPhB3<-iZ-G7})>=-wttaluFQ`px3#ODre?qQ%sx!-<7TWhHQzsai> z`O;n}wvjy?RHVL8kC<$q8@4!a12xxpOD%sF*Ug`s0pZPo3*8S!2}Lv#R%Z-eaRAX$ zhVGEB!tLDo9>)=78ubkV(x^Mr+&-2b=KT)`7`tJgd2Hm((RoqyU%vUeo2$uKksn_> z-yd*Y-HjoBD&te~W<6|SQEmqJCuFr;_rKwXZRX#GAKy61v6_}L)r<Y2~zP1Cx<@6i1^HuO|E53R`ReabeCr3dS;hC%-Kb|KdYYB%4-YQn zOxm#Z*zUs%w9B*PCOO(%l0Itqu4)@qGWX=$={T^wLkUv;DDg6mYQxH zQYvxtk#!@f_h9v7Kc&^#IVvyhZ+2VUUUwh4DL-sj>(jUK%92mtwx;y5>{mD&M`apI zn>Yc64HC)B9i%8UTI9Z|7D5O2%hQ&=U*Yr{3;(s%kS{sw>h*=WK0`iDf3xtT${}y0 z=POC3{D7e5Rcqz`ui0bxY92Uy+qVKXE|^U(9hF`Q20!iSPPTus1?4TZ_qFL&sbL$E zZL9gDlWZD-e!sv`F%*EbDE?q{UL!~!X&3lKsLKA5I&D(f&X%HO(@Ac3q3A33BEFK$ z=#x|?>}yx&aD0bYY~*Qqb~Aq4D?ST00uE|Hpa{NrEA}BkYaVt?0$~XjoH1 z*oHOu&7$nTTCeQ+e94Xh330;-_sL_IY(L73lEfDXk%oR9>tU!MaUlvPs5qZrvBm3r zi;VGhc6G?QK0Ye{WDnjny{o|AkvIhH9KJ=MokchtaWz-U<)UGMbnRJ64}zznHcPBf zB=5a-UTsdbBJUDb;X=1&gvZhD8Ys3Ku04un&n#}WvGjaC17Ov`vOrs^xPsTgAOFLWyF!!$#5 zNm?$Nz}Zoqw$gy2HXtuS#dnp2w_ow*9zRS#`|dVnM@4+hyomKhhy6r|N!(%;fXx|3 zx%N6^ND#=PK^yU}Y98Qm84<7M9jH$MB2d>*VC1Wpc zd6m_d;(qwVcbih^@?2r7nIXbNmx@qLmQ*?(!IND>oNUCKv}&Eqh# z_Vf6x3u=AqP6Wrd7>-du{*1LF`E*nC=__Q5F;R&Pk~~&Z!Dvuo2PGQR9|B8q?sc9} z$&N+5+H}$ptX{E3h^I!oDLZQ-1vbc3-0^|OJS`k;;?znv1Rq?l?~&k^ZAC_1QH{_rLlRwUgQle&y}Q(vQ=r0ns5R8HNL4I8(I(xyznU7^K(o zFeR7WR*_2F%G{>>C8(R`p%I&JLe*p_#;_80Wf41P2gk%i2l(}>%lo=pPVntUg=@W6 zrlObW05Fm>a@ZoU|It#;e|bNo;atn)d(wRMe`ZAu*4TJ78;k{-r<>M|IuYTh$1x$- z>fpe+iR!xz;S4P!6X1V9l1~>$`){!&bC01VdV^3?f7!1XX#3D7got`H|KUDD#VWjJ ze_AKClhu9QLCtQw2K)EtcjdnZe$3f@Gagq1!@9FOQb0k}JmA^hDwU~fx9jPOm06=s z>R4q2@#EsG_<+f(K5hatEq^u4d~;WU6-oEM&=M7vC;K&=rwc1`=UXE~ zLyr4#j6=r5A#XcnfkT#k?0d)Y)|S(aUH=CpA*7vGn-R8=4aV}gg1EfDP6n~puGv>X zpmSs7e}cBM_Jr_ar5z^yl?V{E6vs+ssY{|ba?iQ?SB3m<$##^oaRE$xqy8?it2>re z8|HHV*}k#Stqpb#h@w7@Z^av+T>Yb{XR2elYzSFuQLZmbA6RI<%Vc}>_m9v0<3IlK z&ccCyiPJ+E!Xb?H^jDycORY>$4-2A$gSwcsuq?j%Fr2qBRUGXLj z8;EV59|IQ5Yrj5iqxKcGs4yZvzQ>5T6W9?}KO(Ma;oP8$`O?vKi7ig{v*hj=HhJVe zg4#tFvl!jZOo!C2J|srBokh}77UiDeM)B;?aoE*}9`LiOQ}h|C@jY{~`T=K+CMj}} zF+M!-P8%QY!%CAJL)p+TljmIbK8I^56EhUkt)F5{qXJr90Ps`Z3FY?854;dIvOtG! zw&n&R+BfH%zJNe?BBOK+!0-kf33<$i<*ke67S&ms*E}|!Mz$WMD;GhLagC>Yu>n*0 zYSG|=LVp+>d#YT_5a#mc=yP<*fWrPDEACenC@fH+%S(LzZ@RcsKpL>$PB@jOW9$6T z!(N%&S+G<_>o4FXCIBvb$JboRHBU5KQw4XClO+>e3onGWah!A^1 zlv4ec{Xp29h51L>J_3eL$9$G%RkiD*nWo`-gk*>IM(4J)W(+YCk}N^RH3nelQzb*_ zQpGo)j*MjuT%i8JzZLb9?Vp2cckR9+wJEk_hh2@U-r)@KkOF@d&cVP%oI}gwL=hDD zVrE>+?kw_u(~`ZG>^NI^2EmSykM#odEwjj{kbAz~wZ^+hAEj%#nHsgT~oO3e$n49c&?JxMe_1TyB>i(LG zUVo$4-Y$F%X(F$>XyPSi9%{|t&mKc!Fm_ga2JgGVOhPzKVq10pIl0cT)x-TOfNPb`83&OhDACboV<*1#tD&HL%Ez&9$zTVscOB zHNOw^kk_Zwuy64PgK~DLRc!dR$KGTm67qRFiZmVlA z)yd9BBBo4iFeq)cD8@c42vbnSqJG8xbL{B<%uV*d^Otlt%iuwhkc!3wx@CSO{6sg_?=2K%qQO`gX2DpT9{eyJ*#wCYuV1{EuWSNc>cm5L{lLP7oM zWC^SY*~%Z>3O2f0_K#trz?9Mh2QBc-Vep7wN?qssILG!gxs1>!5kf(gxQRc2NDr`t zfAdln3jcymitt(t_!K7&|W3R+GV8yLnr8Oh$pCdVvd((QinGNA#4diIY$ zr4r~1FcXnQc*X=W+^-+a5OEj=i*P9yDKffBxIJCZfAs$qT{$=N^-!7Y@{U&~to)33 za7~J*gG+6qgF~|RBpQxMSJe^dPVA=CoEi1cu+V$o#eaV3de0!y41L8KqN5J+--L5> z3tW#U?%R$RD7}huGKuef*;8WculFRy%0Sd!z0Q)|@y}SYJ|bmln5^28?K{VkP2M~v z!z&D;>H*fdI~AW}xF_&^We<{QCx zTA0kkcl~TDt!uNM@F_oqMe}AS3BDW8uV%hm83uavTLTfGPqUXDhLtDFMn zu{Wm-E!JPi)30tec|!U_!^|Bhor=7NTI{vM5RkXrL;sMR^sxUnQC`zV<-KnmaK5}R zeR*eYvb+N~g72%F3_dMhT=|Jdl^gehI+%QkuZ#e+H{8}L@xG$=CTD)Kk^GS$95JA| zYSl-=R+?XtI>0*uv&$a*Y_6xN=efC;>9%il2Cj+9$UF1#tC1hV)>;QumA{gj(-wzh z$M&jt$%qCD1lBok>anC%5BFYrmV4zDTGDt}&6COwV}O_@34 zc_{zZKEKlFkNirfzvNc7d^ku1H`!=vD6^B3l$vWT2LqArY2^ab6B3vFdZ!ZIJkdo|d+$`{l7{x)L%v9*FX7`P>#$~8lyz7ZOafFHf6)ODo=+HTWM}x-KUyMXyG@A>^IvbU z42T*h7W8wyJ4_k;cQ7m6cps)pCN#i)fS$->k9G5Mni`=QKr^~I2s}r3M7VFFkr6Ww0>MH$? z&FHM7#nWZeV-!VFhKbzh1?-HlKaSwho&(*=k{&bFTjE_k!YM5Gl`=<47J_+&v|ni)L%opPndi`adM5N zK~0&%W9gG;cN6B>@B2ZRBmFHo7Lp_TifYLuzK)7N`CAg-pv1p6kl6mudYc(%@RFUz zPfz}VIC7t041xQw*GXlp`&7GbHb52G#!7!UtlT?z)PJ2?+&=)=!T$(Nk;AzeGe{&} z6m@N_`*)+5Enb)96Ll9hJ@Ptn%#LId|BMnn{r_X_UEr%KuD<^Sax^OO1O<&qY}BYh ztp){46f_{#9Ss`PYDBA1ykLupkRV!=gp&Zr%|TFW(b{UO^-{H7P(*Dt5i|jBT)g0= zf?9PSkF|)lT(so>{jJ$2IZ4pxdH?Ur=R?lkduG6fg(4o(4s)J?MKm4$ch@pUDw?w`o$_x|v}r@#D~@&i z!{DdLLr3V1s)=^8{#B&J-f%-kdud#a`lnj`lMzg(>-bKO>kc0N;c?;y1`SfpfM>cT zQp5x&2*%m^!if)fT%#Ky75AoPj`XjLVpYg2Gla2+N3}(AiAK)!j~OIkb-HA+X)(tlW%dTvSHO({ghwQm%W=+fkX>%r~o}y zU{UJrgcHkwkpi2D{4p7htHEJ4HC7D_PAM_?WwO9(;C37O;h|#R#?R!r1pRT3(V4yI zqvT1}QC;|P>e#O10q%KazHv{#VE+Tr3{QDeRi#-!m~l+@_ghT=h)a5^EqEEMQ@3?+ z1QnEs9}uhj>16h<{9v?#5I8MyIXuo6s15aZsh{{qB2qMrferzKfOHqwH+?Ogh|yZF z!KHsJdLwGa^17%U83^_~yMtot0G2D9jIAp5&mQRCB$>>q(f5KsexzQNh_v~w!G@|o zvO~BgA|*lCGkY#iGk`-)s*j)^gixL&3^GuLYaO@qQDlfYkEu643t^p{hNUg979BNm ztgI%7aHEYau2qNMs8-bua^RiwKbl|x$6lk2vsG^*;-}eXV_R1wH4AA78PAGeO^TRo zKk=b7eKPQmxv=q=kekVD9y;N0?b)6#9z&^heq2;#%43pknjq$z!XJ=(>(j8+KT9K* zJiw(qkxn_LBLz>0cIgWY>a=mVgM0n{r>-2B)xbz-pAl_b1%esoGTb+7_w&c~Axvc5 z027vJpW|^(PCBm|&L~3U`JxNVBU|P^dUq=c{7CE0;a|r1Ff98U0vGFqFJU=Gv%YvDdL#(q4{G?%-?Mu6e5!7jU(n zhKm>oJf0Ao=fC7wGB@?NG{PM{>e+tAv+98^^CJXa_-Z&u-}#2-t4OonG4Q4Xjy=kI zdQtTd&$hYS)U3*LWezWW%~Yn5fEtqqHRLU4&d>%U)_HZ%NOmtEYxnIL>v1fo-oR?TU zO)#n0T-Pty^JUf?H+|;j5+?$K@vEK8DHRmR&Q3-VLC9094eFDGwGga~)Lu%x)4Je% zDmV4(yfhXkyy?2LAiUaBRBUa~E{p!*GZj<<2{k=hVvJvt{(M^yhB&jOeWS0@p=kL94d=oy8^i(Z52b zV~QznT7I1g3s2+6i2;)$8Yq{rMxgZ?OYc47#!>;?T;#~h6LKZJO4)g-8&s$RnSPs0 zMFljVJ@wmQn9x1lF=aR8()+(=51{L$4i$m&i&m>)ApM9MQMk=hgPsPn@-#LGXTwHW z>BwNZ)>0h}>Or5^Ft*}4SuZjn)u%}-nAWKk_;bxkNSjHG*D5Qsbh|}NV}pAkg%aa- zjD5Vh;oG%4GR-H3D+~2kp{^a8G3QG5)R@G%4vUP4=KKieGb@pe7vTRxQ>kh03~m{h?&z%umGl-YE@%<7sE&mUftk2gNeoT zM%e%w>Pdm7e^{4iHB8`n%z90PI26iI;C}qbFn#21gSgJpx1qwq8q@$^`cxKc*-WS} z&%eWw$UoBar;)FWcxhBJsoc+78JFQ_S`|1pJ*>eOudedI`!3b*E)4SgU3e-{BA`h% z53XiqU~ug37tS>pOJvi*wM#!bYG0|>xQh#+UjFpb411RBOVpdUZ=2gv7QMZf>X-4A zLMT*E(+OFY34-MY@5n!&JT>g8u8gRj`D^uqKkz|M=Nqj4zitHmH>~~%{T-PLV5DAuKQhan>J-Ur z`7Ar(e5|m7CSGZ%`{?n1yfSB+*RZS}1eOLxuQJ@8_57JeUwW4zfnNX4!Hy?rFX&p_ zqVSH=*8@_xC-i=;du2UY8~oKiwI#VWmrrb_!T2Ur)DW>HB&55UQG>7GHIV;cwmS_i zx8aTkpgcD7&WX^a{GhzCtxvBcPq4*t=)QuyfO&&!+FikXv4njRXXYXr)EQa9H8^Xl zbb%Mo@OK#>O@E~nVwzE)-VKc~+DQjMfdB|vQLu<(dWN0_Vs%ea4LO96l}jy)!c`3j zn2ADsqtfCXgB<+f4~}ojg-39t?B8Hjo;+9vVk{Vaoo;D^(cDg&fo~oupY%xjQ#$F< zNg1W!5aJ)XBvhQ%`Y-q(Aqw~_HfEU3F$87>7g)yNUDUs1e-@!O<#*F(=pxMrMG|%> zLiz*F;XMW>cNQs!WD+(hW~4!@yoN0zNVLf|>=NdCClMfJ(qFJ4Pvn@tL{v#UtvA2_ z+9u4Y*o=n>RJ_4HHf$!Ty*X~bvCZYtx%rklU4lGv@3L_A9`mxBkxEiK5W|A6{u~wL zVxH(+Is6m!%swzwU0oBYi_<`^{>SvAn&%3g_(DU@g6q|dz!2;AKgH@X&j-K%U_(>U zi}H@*dukrh>3(b(SoyRCFMOiGu+k!(SmB*A3xCt7HtG(;yswrrIiF&^GU5}S&2yqH zm>HIL8+B@@bN&BC_}vVKiO7Ri0tPzb6*XNw5?fZZG&r7Y$rsb3jtM0CPwSA zC~U&=hjwNqFI6rsip}IIh2aWL#iM|Yl(xSDO7=21q8mTF==g#0BD*pCP?AhivXknG z6};j&(nn~rr2LiNe@m=`Jf!*GC`%z|Zv7`u zg*0W_f~tQQ#ZwJ*#2tVM304+<{vBu}^cggM;`g821r0i)a1x2uU6jA5v;3BiT}O^{ z1LtT}2Opy$B?)%hq3Jt~zgvG7yZ(k3CjyE7=1-(V z=u3vZ-s&1wpwV|QUmYJvJJFK1+u&1pZX54GLkB~6iT`m7u4q zhpv0TGT0bARyGjE;1zV8jlrhO!joKKjls+LZucTm{({c(+i=8F`NP!pZuq6bPY6p5 znnNu!ZC_-aDuTr1>~IU@PCnm*oLc|W9}^|D_>-Y2YG$?#oaMErI767;GLA87?p|Oy zR=bFsZVlHFHRTHy2ovZY{bT*V-X3sP!s@A+I}v%{O*b_J_dg|8;3GjTy7cdM?(aQs za>jgu2X$6(G+qD*g+-`IJ?`%vK=YXJ4#l2%XmPM!B=UKQEz4aR%v6DuUF-Xy{HOgN z=HKuCF#krVkcm&Cu{e-6am>j4=&Z|~UcXS9ar~j;`KBSeUt3x<7T548+PATIQutfX zuOGSKdiW97tz61ybZ&WRd%dl&{l?-Yf~7ofYYd{Zpb_1#ZWm-7wZl*Dvyi9u4s zC>z8m8-hM!JO6V2-%;GGsum5Sui5RJw^U{QMa}e$$9v-}#iXTUOvbhrT}J@8A*+B<_oc^cboPlRKF(mZ5ZhWF zO%U6S*;^VgQoyNAEg!KUMQaN7{!EBB8q&F zA3Aui08fiCxd*c?NPLq}g%jigy%iap#K>lE(^};%4cC2U7x$DH>~e@>b~}7<<70fn z;&RxbI*7qaLKP8*cNTupv>-CCO-mZrxvT&VUoGaJTReem;k~}MSjT&QKQ#F}EI}SX zyII&RF6U8as(Uyyu~}8=sF!RF0xAxnj*nIeC@QPHhM)Z$MktF#zDYN7%O))3VipV) zJ5PtLmJ;N#f5d+?g^4!V#E}fp zki8q0iQAX@H%YOQ66BfCa~uxdM~8S%BbUcu5#xIy-ul)B@8t1LJdSA13n>R-L~Xk& z{TX4DWcoy?uEh~}mMbvxK`ka)n>hvE1OM^WlVQ&lnR&YWd#8I6u5VB=sv$dLANAc9G{pc|~ov%>5~ z_;3WfqXoxVN|>$GUb<2^Sa^a-(0$#{4en<=igWUcwA!6Ew`socBnHYQ2Fm?N*0mBa z?pl*_1godx%5T5uR^p{R|LS$I7tQa8_*6hHmq#Qk?L}!Urrdo{}K-E zYT2Mm&2a40*4XA~?H94leQQ5c0!7mLY`1*D5Y(L1%uIb0jN6>>KAN+Y7-ghBNq9f1 z--P?c-~DQn&~vwPvJ%#6CK2g3FU2d(Esrklf7?{n+wlJkJ_QebF4jS+`FY7D($bKW z<5X12*Z6n6_)FfPHvCxEdc6x*Dnq<*x%~`%Mn8UJ(IV6!R}X^bMlFSi5Ywx@nWK$~ zCp41%!rA2E9?d!W8P63No1(EX4jj|vc(tbE7M6% zMWQO386$Gt$zEdMX)x5<8ZwBp)=ntWLt^^cYJccjx~PKSu`M4V6mQ92NeT_;euFdC zR%4G)j9B7-ucc#%5&NLHbdr~t({Wk24&g)iqaPPh^A52e?XGh3NbFzO*}O!~Dlw&6 z2R-2N;HBN!kM2qpxgb!RpH9ykx&aM#U(KqRu5QA?=D)8p~ipqAN(!b zR(nR`>h|~|y}(TW@%$&g4tVA&)8vyN6o1axGBM&k-gIZfCNDnpb*1=2SL%nB-jAEm zG9?p5cf_+iXqmGpKvyPJ+Tn=bD`y9&`N|uDYE+6pv`IgJLd_g{jgkdw5)bW>$x3RC z37q}`*^Xr;o^@wp@gK^iY5vgXY8fcJy&{%M#MGrmHN-%!BA*6>QI{ka>jfn-M;Vv{ zzK1_@rgrd$7~>)Vjn6U0Sgt_!TpCV~$F@YGi3Y(#F4cG~AEHcZcR6uKuDHN70jr%I#Lh@7=*<16>!+pI<-wKb?%C4){D+om5;-q zCLpaAm=}<{Sd)HB;J=Pmww9YxAvy#fZB(wX`TEe3BT*54Xs!1+_ojag9H=Gpw^~Vh zv)&kY%sPq3L5Z|qDk@)HJTAn#5eTWcR)s@A&Nl32K4{=XLA zPt{)hiQ>ELcL?!L)gY?it47b-dCX^vBNu?0{EEzYLOU&c7w6i4X)L10RCliLHMVSD z14dm*vKY00D-Z3Ful;> zw{D}2EHt3h8h>(b*-O!cLTa{-Qox9;L{&SH?R&Ljkw3S18slPa8($f|*8`qmekDJZ z<6o#K+YsfRB&A$cdXhi96+!R1dRy&Mw4l-Iq&bvqJyHIz)HS>~n6ht&`ho?)j~w!t zXpg1XO9vdxE8tTsvKN2p^KhpkF}7TrLs;w+Bl9ul!?x3S%}>+AYU7qk*V5!j8!Dmw zRkS;|NN83TPgAhWybsh4Mv<|}f)e=Nu|G-UCn?Nu2*0t|H9VZG8ZAIft0h}Aj$K4W92GW4u+v+6p{x)OBnXiE5xvM z{nALK8+9>!AAHRj=hP>3o5k2*X54rs5=^C&izRm=A3fMHv3uiJX?B^dpQw~-T#-RwYOXeIi~E-=}@f=j6}^=s4lyVMt*HC_zxJuapg zghFRbFL9g61I?^^sD$s_A@sh3y~~r-pUj}Xwp?n#k)!=leNLcj4${8y8q8@bj}9S6 zi1_j4t;d^u%CIgr;eSlm*K$sD-g@#fPo{e5zzj=r|0GOkG&eZ)Y~#aSU&^4Y^~6+c zMq&+E2VyNe-?HuTr;Kc1iM=_@28qemP-EE||C*6aV>l=YvpLeA1hnAdbNEx`s(&Mu zQNRLK%|2C(K%W*mSA2+FL%-(LN_im zLf_^zaF+e1+d~$ZIds0GyC(Bi%UCLVt!^@Jgvj`y?lONe*WhK>UBF&n;V7^Rx)_a@iTD%+U%Fzd>x%Tozs;hyvi@C|4Xz>EsV>`np?^SUHY*P_ z*RczKZk3+>R7RzQAfo?6Xu}Lzwu5$hk8CAjHe?W$zU#Q@Cq1%Rc`9{mvOkpu$HF1O zAlK$Ad$36jr+bY};_qi*W@oogu%zI*yJ3@e5aBjf|7ZD-h&=QFLQ!ZgdQ>j2kMYXv zSdiTokNk<}rsXrVH83lk>+;7XPdlv0sMI>jaU#`jUp}0PCf1cd5j1TRYzMW8TQnqh zo(f-y$$?DneVMI)XLDZ&Z-uJZ&)Y{ohvXe(Xsj62;uq%fIOrXJXuf{GV%2-2)&bGE z5n2B569T3+>-|Umi;urN{dN_TVM{>qV&`|I@fTZWH{YWg3LEuPw(`339e4VDVAIeE zKA7Nj?!F^}n5yLKi3uY-c(lSD3?rtAE=ryyoh!B_M>Y`6YVFObCVMiI1h|b%<5u*T zo199_+(a`aV;n46tr?6_0mQXm{k?qd=B3=A?<}A5<#6pEk$<@POWX9)PCq zJhIsNupA!RBRi;sA6a*w3U)epz0Uj7?ffGM$jdy3zDd!>Ke&o!Sbm+d?g*Sakx#M6 z<@{}z23IEV?_w;`l^hiqm=ZvB_Y+g>M1h$l91KL!fNUj zX0rN)A{3&mGA|TkW50C987^aUraaA6#skSHQk151{>g^4W8A%N7g02&5(6Huo031>{hy%PlN#=7>t7#4T1Hmz z8jJ)MNw=qy8XlHJJm^xBNAso&Qfs8-g#lUhw=T?DlJ(=ktm4$egJgJN%<8svTne~? zY&Rqgn(12JDlxzzP_gc_rEw52o{=wuCfV|E-W@HM8gevj)fMMcBhToE&MS^HLymZt zrC#JgSPX%1<2wj9Khgq%5)V%~QTO@XVN<^Pv+%t;Oud>^cATh-a}9hm|GnqZdH?i~ zcr|if%K&g`@me+?=d}dKdD(5=s?9bTYquw1F_>iN+Dh{0$6?3F_f~CzMrVdJ65_eR z9F6Bh2REbSES$mow7hm#KX0l*i8h|7B(TL@$t8U9d(DmE#f4PC zAYS3MY=KNksJKd0!mQ(Y+3)D$+7hqqtLc{um0|vf4=w_;_Uq5^#{IW+^gZ zd1ZF1468Tl6ptERBlf7K@0GnddMCVE6j7VaWlHJNnN&-)%9kYPP|zSHuNMgBnUrG; zt5+T6R6AI!AUNUgvZF{=$+G2O8aN>v|Jn=>fcWxvA#eTq{{ObOMpC@$AB2BjDVeiR zWJNk}{8_91@$`Ec>|j+SSEIoCd65gOYj$K~<lPf7=9ZDlnlj3;?<$o}**<~60U6g*5y3P!+Dtiw|C&Z7vTNd}`O zxeoh_AGwuk{k$UDg%!QAPT$fDoy;XCcP?9wZRfijLwn@F)ObX6-W!OdRUai^m1J6y zwdA6AP5_By6R*LV+o*L{o;p-Ld+4@4I9J1@hkq=!TFailH?16TTVJ!djv2lGAAU>M z`h_>?r)*_3@oxg{iCB_xm!hqB8NAZy>{>BaTujNF^y4qdivvPH6lq0B7ZxN>G!-SX`Mj__uX8bOx(|D^KqfP5d)5(ySBHnTnmG)>%{Gyr{oK~N zm3BabMf{tguUkR5*Q8jz*5QBEp;PXUPFFGaPmY-(l<2PrQz9iU@;Y>|6@oG50Rb$(wpiyO1#t8DNK0JIh5P6vH3?S zC5Nf?A1}=g(LT}8#u<<$$ZK=(AG2#BI{7~_y7+##-}a>2Z<9W%{Wdd2B;0Q>ku#?q z(*{^iRD%%>nBF5bdQL>*chH_Vf?)pL&|rLImA$)ot={;&YwdNenSuTOciG!5#dlE| zc5{2X!-cH%henN>PdHnXKf+V$AtT0GCTAfH9zwaH&f?!@=w7yxU4!u_WS+SW0Q-8d z-;(!+EPi|D2YVmyZA!WsXzOm0mKtj7FdhKxi6=9FnZ09{fQ^sLI4A7g#V+I6OhwML z&!1bZjjjQr!SquMM^SDAMRGvB4m0(*c1 zyZYgboZ0{i-mg-#UHCT3xr>A8-;=&=4|6`6hWQ~dgZGgU(Z!9$>-j3<|AX3K z-mhxyVqWCF)J?|yRU`$ejZhs(#f=Rxs=2&O)Pw*0dew{2|Q$|k1uy0s3Ivv@L zcNjjM$w=0ZpVMu$V<2L)SS(K79UaJPdgOghYy)?6^!Y!@8EmG{gO71rNDh&BY;8pX zwkL1oIT*v&V2;w4^5p2n!uP^p2(R60U2rnl?yzi;#4Yd(@xDN++QP=Zi^vPwM;rN` zTaeLIc!KqhSnmQWN`WK`iS}T%%l!8IjLZ^V!4@cC^(Uu-r+DR4tu_3}ocSz;?=vRD zyTjyj_5pc5~ZNBfMUTJu7dM=jIir{;Xb5xdp&0&QeIUiuq^}&;p8AT%HeH% z>DO0@=@?1pdmJ(mebRn&3vJU0UH({Iw1%4UW6rrOGzy{w!F)y1N-*31Rv(jnrFXP0 zwGkV!=NI&xTJ^O3JV#5ie-_SKS$9Z%O>*3WuEB=wH;CNuHp6AV|6m=w)Mh`PCATEvS+ASBmLb=_maLQ6DC((FIl|g zR@X}_!T!S2!|oYL_watw&6;ZAoxys?o6p#zVcA*$$vN!cbb8-;dM;}&wx zbF=TEcVtlBM%>Uar(-j6UgUC~nmJ{eK-neCc^Az$vK&n9!3nTnPzuIrg(G@PLjAo{f41|%I3aY~-}57@03mzHKWKrUcg$EV-lL64-r_IB*TlB8*G6vJ zv?Ue6=XLOE%nO8gpZADT*MeC&dFS2E8w%9CoA_AS-?@&09eYG0ljAq|Th2P;Q9baviAdkZc2Drl$DvI2P*Gmr)nq{HL4 zhz*YCm27L85(rYdH2#iVHyvLaf7yaKNNx2T8tKCf!6yUF26@U2^p7q`3#r$AKlWPs z2OVxA_D%NY@~uYe^g7_B7r{q^{Lh){)p14gWnfT@;oW*|G!JPrUOCT-A*P?C;{JdQ%J2ZgKKghZ+%89IcHpK5p^(eWk80}AmxAi~3*~C%KWgq_Z`FNVwgTGY z7krEEhRt7!GvKBS2;KPO@9Lc{_60@g#7Kspx02N3TJ3tQ0^{h&4dx{Vy=mwg-6Xp} zA6zh%4;*=zM6Obgl%&E96u}@OmoUCfNX9=Hw5H)(X*rVzdGS7G@ykU-<;%nnoD)*E zfR+C9oeS0S=;F6fu~*60E%DRr*$uAk>2+*p#t>z?+|;q)mvbQF4jp9dY=5G$xEiyK zTVih3IBEEzM2Z_r%p(1=#I#@7rvRk*Fr91r&T1AvY!E+e2#&?SN?!A*TiNvwWrl`-zVe8n(#8GYB{Y>&YCm zjOp3@-YZp0Dg%Xiq zZdl3dzb2|@W3fjo7$hP28K=&-Y_S%cg-1;aFCk;w6FUaU_Vsz z`wufln(aiqez;}yX2BvKqpWCrb#uTllbYjt82d2M0%KGs<1ghV1{gobxVQ)};>?hw znOu*_=E&$`hR_}F7!Oa*j<2L+AM5DYTAXT#QYR2JDZNE2;Z+0~6=@;!dwNKB^0UeN zBg7lsWL6~+7Bhz5pf&LiR;31gAm7V*0M`92LmF4tPDzh$+Igu-T>orBf@If@;Kn~1 ze49pkdGwZ-${YVv`+&xJ372(XI*%@1E{0$p>(>Uh!$83r;6xmTIMcCbda~M1LWt(dqmB!&Ps!yGE9??X&&fC&)0=q z7ylTwfsJDmWUO$##C#jG$S+!kMhq2-nbGpq0B_D2NVKzoOQ8bj`ZL;IoamR^zQS0+ zkhtRm0Z^=|68|}&J7^1|qiuu)+IsCfOSe&kXf{k&Ck24?lnd!4`SEoE)jzt#n{j9`Vq z{hOgn7;VzvX3Wsts_7;lU~Us6dn^=lr^jr1Z0eUv`#AdA`0VY*XSL>#D$OBPaK;1; ziJCa3+>!a}Movm%6YY~YT^GZm|-+!?QY{!8AHP@P^b~OhTwl1gpP4bn7!77VnC`m@t^` zf-lZ@a7%<^sW_Z*bFS7Drx*DB=Rs(W3Siqh9$sP3W^HPrPRx2i@dGHOSc$<%6(*6i zjAJ!Awyb(-@Mb+cxLyN;tsH>%N$t$dRBLooRs0kNpy|PcN)s;Ft2D=qz2NWbcZo9e-d_@nhEX3<^yR! zY-@Whv*0-Bwo-7;4&kg@s)przvqu(KO^H$2UdwuFZ01vb>cbG0e!xFN!53{g0_UGi z6<1+Ldz<3>X`{I%wcnt3TR!U5vbC2tezljqkz)+m)2l#a*r3*y&w91A^L?F{ZAShA zulH3Y;CGy7cX@rqU0#XlNA&W_UcY_^9f%+FvX}TNugsaWHTpXkBU~%M%|)GW!MeT@ z2pQP^U*X#;I`;NH(S0*a=>@}vW<@!@9**O(u&DY~+cgCK*yg@6yL2BUObVExr z8wxaTBX=Sqy-xZnzej6(jL)N_K=tr9K(CvlmTA>=FS8kAj0S}UJN7eg{D=FP&*Esd z0%=BP+x~VOwIKAP)#h9-_a8b*lP@dbnX(L$Y@o#zW8sRk>GP|kzBk4NQ>+}oA#ZDB zRD#ER@EF5PvYRe&<0j#A$yMPq0tUV%W&wc0;Wi#?g*SWgw;S z(GV!{64&?gV(q=6GcQwe+3V5SHL8N~SuL{#c0lH~io`YByiI7%?VM2jEZ-X9Hf$=( zUW?A#W)S5kActa_c$eBh!Q2Y;Vi`#DgKr*k>c=Dv@M?9QBRgj|QhiXe)|%w?+8NoC z+3x>(%C25w3M6`M@<&M>C$)320_#6vrrg2psU1-`+PrqQ{nuT$XQiLBt3%p5?6gfHW^!&? z#X_l)IFCNFzGyP%V-@_TVOc#W!1Xir>%m^Zbe}j{AJQ4gtw>X>X%+m42G+cg0Y!4h zfQ8zL&PWZ;H6$~EL#`TumgXtTG;MHpHbKY_-UEUrOV(#~F1}RH>L&T>61xw2sVEN>^grQKwcYxir{u7d?WDw@nLO|NjV@u3@^p8A;xyzUZtC%GV{tC{37fkDKs==d~f~)6EzaAN-XTVWO*qnBX(~ zIYKo1UaQJ9Te+@iSQ#g1cp}jYkG@mT1~TvpuM`Y_XpQ}h7;6wwBE?$G(@G8-PJL&POYyW@J<6y(t=y9B2_(MzWXT-h+u`4|u4t);) zm-Kk;ciW?fXBVfKX4aJ+H|}Kgm~i#?&|@lu&a`hq$)b2(WQ1<{TXd|ccKfSm=)B0% zx`A2oKF(MZ?69NL=A7=$QHwv3YB_^L?t~NH3ci`j&rLn}F;C*A%Y8ZY^5#2StJu+w z50~*-EH*xJUHF_ITzZB&JZxK$x}FIy@11Gtp~$=Z_>ml;%l_~JgUx7DC=S!!9@efmr|RH zM#UM~mXC8_=)H3Nq4OaWYRX<5c);2*e6Q33FTRSeiR?WUq8rE@+mK4`tJh%I-%_ z7ND|~brZZL=!_NuUN!LL7*c<%)TcWV%354xfb_VJ{4#T^3;R%3@T-BMJfpg*M^a5X zsia4e&Wl>9ydFshr;~n{xk+vNJJEEKm&mYn7#iQ~9RmD!JR`|=aNbELz1t({xpdO= zJ(BKDC*9K{X^tfY*^^;5_Q1Lr?7Pj!S89FH<-8Ai%b}t>Q{2}ID^bG3Mm?BrQ?4Yk z6zkVpGWfN#PClAVFfSfPmRoWAF)HoGy2UZI%C6@!EfkY z0bzhuBu+AR^3bD->>>^u^Tod~)jLfZ<=^?H9frs1#;7OF2j{mvsXu3K*R?6os(bqfLW4 zU{PXV2P{$u5E#PZr57(!Zc7DZV>F*9{^k|V+b!#o=wU5&J4F3u^n`x@z%MyVl=Exl zEa7k7$%);vqKCEB_4?Ii!H(Z{#tl4XvUNf3h^$Ck?C50JyX2 z+AE#3YI;VJZJ=-4GaU8zUzL$0z70N3C(Y@R)Rs<~&?D*LbW+`w82~jJf}7GwXZA?C zI-T^B9!ck>lL~qyjZ7zPxuSbr2d0zW?UA%gI_b@Zj8aDV4SR?h!DW{tmug`FroW8! z0mE#w+x$9=VT;kjtr#CFuBUZg!u_^Jo*l}(&X?B6s_+Tk*snIDE_0Zv-TIv=_5~V^ z`P%w37kBAwvYJ>hABO0JaD0Y}B%4FEzZ58T|7?|~nu0c_CJpf-6-{j7+u&xr_Yq1q zvTHQfQAtBnBp^|?dBfB>^l*bFg^dwWV9>73gf{mg28nPp5it8eNd*NB!H6?^FTG$s zi@)q`ddFNb_vLOiMfTu8Ky34_(WajR(DRS*p1=I!%O_2~@{-HEvTbz(Slu^ln|Sf$ z3+kfLrzZEgq+wg_#nDEBgwigFaTY$P_hxk%dU1jy5VE^g`jN3bpTI`ljuo-yf{ON* zin6bwiDgL4F_>@1_yuG9n*55g7wXo_f>B->zo>YcbNouT7b^-v{}RsUUCY-p)5`C)gB@J6Im{@m7 zbn)0;^;;*_?YKm9bLu`-R=2C)w_)oQS6*>3Uf0d3n>!o&UP3$^_OH5PAWq2Wb-T2z z?-gt7W#M)ebSf)(4nxH~X>l#6sr&WUs!#nc+Snxe#5PCjShRzYY8*fLf+=;ogHcZX z)(LexFA>d?ySd^!)D!ox@({jBP=^0RDGjCEr?n7p-tgR(x_tT}-uMmPnoku_&fBZq+jkpQ)af64gEpE+ zyCoFu)xPhx?5{y{d^0Nd^u0uP#eJ{cp%q|G8KdGE7#+ieUh#YeOi|~KTBrVqybk^0 z?{@NfEfBi+^AY}M79gr;n}_1xR>uET5noyv-w=F_ z9#*L%hwCg(C?zHCpD2D5*uX+$(^fzMzf>6yf};%i4Mdwtexxx)_0xn%btRF778=qIg<*dFT6~x4OhjIo>rmJ12I|b& zYE*%mR}|D8PeU2iCO%7r+_1_-&2~_?$OPdehZu6u)4f_rL?5diVSc|5|1rpkj_ZX2 z#0~hZgdfy_Vs-05P&QV?bzk;x%>*lz9=bdR6>||2*J^^no-A(ug?DF2Cw2OuCH{f);07( z0s1-Nmu~^~_V0)ML3sbfUue7VM*lyC_sxad!7n=NA`!HUzgh4L3ydD=ofcc~i`I$A z(*1U&OQf0PZMazG9dQX9QLd-_VA&DQRLhOMtYLkf_uLy2l?3Mi4uX~N;)!0R&}-OI zKk{3E@a<5$-D{p8Ch}$!st&Cn^BU82kS9NQX}FVy1&urUkp~9J5GHeoX7V_}#PSX_ z4NH^{NSPELcBor(0DHAw=U6OQPChDZ^Kke@bu0)=X*L(J-<&ekVj(7%mEDc zYo(NRrtCq=#)}4`e6Qs%fZCHEYJ4R|ywAHw6!5>I{iW9PVQKi`L49~KsJ#H*o6&VH z6B~BnzvwJu>@NKwRI8Ey*Byx7u-}}V0otKrTdXC>^Qn`n5Do$4; zzmNp#-UE7tWOU#y6T+xy@PEv!4=oS>g^u10j@oDg?r`@rt%kPm4zaqock1}A;|*fu zgw8MNn-m*E%ZQN0S94@ZdvjCsbXys_kq2uoJc}mLScj|ZFFdiy_2_w!{>@;^`TWcl zvH91H-e#lgVsBicUR5iLTy<@bzBsm-*t&A*7(wFm?yf4!s62+Wp>6yM`ilPLoZs6 z8m;=W$CY8m)CaWxi_Akrds9U)E7w+(c(IL%P!6^Fw*ZPJOPKJ9ILJ zc&eJ^J7wMdqU+-A(DQ!_?qoh_hDLTc^C6|y4LqU_cz_06=)kZqkopLDZSnPj?Q{coDutCf@n}98q`o>=NJyJ@i6n= zG-D#|Es8)-&~KtTHws6aPA4fi!Wt*3Be71C$hd-mQYw`AEzxgl`7nEJN#b|9)LU}m z$nq)I&Dbk~V}-ZrLoa)Ux9VMdcy{zITm7wy$$X%-NT_15d5@3o->qx=@3kKiALoqO zckw=WHEG#XSQ11ov+vDQ^OV?li89Aerw5Rp`1P{0q#;i7h&a|>;WWzgW6jz0}yR{6E=0~eh|9=htbdcvo zwFEBkM7fYMHv8HpFg6EWGe2z(K4L+__%3ZkNJPBLweU(awpMEl?Sj3;=JKV^3clDk zoDDf04%6+edR!0fmVrX!J|+~cV~jgz>~6id>w%6TYhd#UwrXNVY4MO{s=+R}4?cg^ zg+|~gbcbxMa&Gq_p24M;Nx%i`uM$7^vnJAIIuFjgG|4Ve4VHE!>U-<)W{6GqtB67g zWgf~LJ9u^SFip!0l@K$+SwEIxdMH%WFX(MT^4+r$k_VtMZbx1mvc2(1CzyN;ihz=jK=4Jzwzb8jQsT?KM2;Erhgq)`T;e#f+|OkV*Jx)B==M^_Ue+m+Hmf3z z?O;+#An-)CNzyRe?Me&>5tzQ9D|Z*yIM{bw>R`*vSc~}!$1K?DT;r~2(=AX;3Std0 z&)iLpViW4Y9*jqdh#A_u0SHwP6uuQ97Y1=048a5$K;s~_y``4ur$~wn**n?p$iF(a zD@nza!C|+}THaYn#}n7@+?Bx}1BB7YY~zn-&@POttV>0PT)!_~b9-oZm&^EG&YAIZ zm?A%Wss3hd&t72uroYs5)niWMj&DD2^*;M3q+ma%041u6xC)DDZ&HEQ*{d|J<4l0k z+2Wp#Jw*GK^R5tFiE+7&y(|4uxw2mFR_XU06K@$4Us-|SH2zLy{5|~B2sMR_9fMj? zS+*P>N&@MWEuXSOMZzmcy~f}CRGa!`m=2nJ1$7CZkT(*9RQGGfO1($YhuoT7p)QSk zC4Sz%q+_ftukfqO$0R(RL~6owA3Uqe{k-0!R`^u~6^UwVfgNa!R}~OfyU(&! zmz8nKe^~Q?_84kbZ|u&Hk982%4YE^omszC`t2O& zmGRfP%lwV&q;swdUa{Xz!7_d;<8KFl{x)RUGPVaapCY_Cbc#ka7;uaKkf%3u@;mG~#dUr#Pf zr@d`yYl8zj(=7aj%B>6X4bk9 z3L3?X?1?aDUi9eiuDt3(A&uP#+Fa}jvoBh3Go+34&Ko6<&L8VzjQ);<;a%L^G6Qe zI6A&SnU5#1QfzrP+)DpbDI*E)teZ|;^Kx4sMI-7NdMncT9MOUMON?9=OLIS};{d)XA6XTR!WMs{)=dq}7q z71x9|r$pqGrrm%p;eF3HwgUU_Y4palaIZ-Mtdqhfj}}O-boKv1#9+y~CRfox@^$OE zPZy}x>yedpdEjDVDS0LQL!L3@Nsi~)A9@qn@O&c6$Xp?ktTYx=B?l>&madpj@_wOw zh{%yf?w|N44U3<`I62+bg2)`jScx`iv(AhE6uDaFQs{+ICdt16I4Kan8Cjh-z>+n< zh#hZ9y2~-g6+)cc{we+rDSy!JFd?Vx*944o37@GaCr#W4Z-JnIYgh=>q$o!gSYhLEUO!W<$8J2L@v&R!GKG_ z!E7qx{0tr@(Rety1Infpm1-JptLz$k=wOiG#8ZKIni(p)jn{$jaZmk$VPS_%%DqH2 z9XJV2o>owqC}+%6@H@7k66sZ$xB%1lkAJzxK3OL;{WIFc{tG?Ai3x;aW&G^?F`O3M z!!JCU^f8Ik%QZ-4Z>Wf$T<#YR<*UB9xtanx zCc5d6%?0LT654`WNeDL=?jn0d{J+v2>Mi>^o3q=3$(H9cvIUpg<4QIsl4lA!dpFl* zXsf%^+TiB@n85Ed1{7M;tC=41{#$i=5B*d815v9S|DbYKa$}3sPvajB-&7{V9|R~J z?H_P(KQYK<q_G&Q3W=$m_UEM#~x?gMa ziufqH|9!rSAsnxiQ;Xz7;ft0Tq0+%CKXWHC{Qx70KY0 zjoe?E!7E2v-Q9WRRb@)^N;5AVyt0TF;}v6+=HTuyac>yK4o7VY=G&)rNqPoJ^7;uD{@h$r(y83|FXJDL?X{-)Kjc_rXwHSf{fKz@OzfnWb1oYMmBQ{ z`kAtETCYfDrjaYSxqVxEaJ>Wj-qjiTjk}-3eVpC?!-T#DV0wAo75}N->~X;dGbM|i zP06H2Xpj4}f^O?(kHc)-?EG(hJZSL0X$Cj#=PuE2BK*aW)TVda$0fu^VqAV>??y%2 z^-qH1-6@#hD1-p*9&uVmJIpQT=Mj-7BmCBPYWr`t(e{}tvwiRaj+}PegTXuB8t^a2 zb_bpn0(W8*^4}@oM+^7?KMcG`8tjB%hJ*au9+2_2mxOUaf78Q^ZleK7tRGip@V!#56GiKoatu3 zev0WKXb{+mKMd9r*wWyoEk=p~J;44G{6q>!2G|<~_F#eS|HELb1a??(r2{+R)b13% zH3SRE06R=z*FfChITiSRB2)`(c~IcM7W4pnTnH9o0ro>yy}@*Wz4V8{)(ET@v}`sa z%s-_&wgLEw2oMXfHwf$j0-OKCU}1Kgu!3JWu;o3#E(pOwEWjQqu&+VZ;As{3ej-c~ z*y><+2X@1l?${n3f`wRseP3cx{1{yL!(gY0d*{QK!PA?J4!`RGc|9l!G37GgGX#8q zfJc51_zm?|qLPika~<##djO9aaExCD`2ay~hQ7grD)7D3xWUP)xy7m>XlEv5M1NJ; zohAo{m@AjTe^ElMM(|JmVfe1CSj~bzI^aPM;LE|)gFTQ|5d4>dyn`Trr2^lN`9j0R z-HQ{P;D9&w06x)xX9P#uMey&1+`)n$hJRNGU%$a8cra)}Ik`J!`h@UZZt#CllJ2L1 zKlq2?-*52QW(npv;C*`le*|1b8CVv`V+HvO$Q`_`0v(hgEP=MH5@Yildl6&DZ*bBP zx251P2l>U5x}*KG5Hdp-$eSdRZW83{401TvHY{rf$ECrrQOx?MZ|=E&9G!Km(`U=I z|1?bdPs2dBDz-VdjeEZMEx!}EbL(^Z+aD5!Li zwvq~D@dzf=J8W~c*d{`Z;caFVvY8v9zM&6MEz~c|%#J%*Iy;e|U6g?I2Q6lcl2Tyn zw`__wDqKMFQ~uO{dkKecqKnrg7xNaB5tbTVZ6?G_j^RUxuBHc|=gUR$MAbvXLhAUp zTZ>{#w}pg)lNxc-KRLU8%PY0JMHla0zxCDHT|l|DJeSVMT3WxQcio26=Gf+4>Nu2c zusEcK!3vY*N0>n9HM)$$GW$G~`sYLIve`<<*4@@^J$)Z|3C0FgN4z_M^ zLZ{k`=dcwh=Hq*Au%G6s%UK5m)nB7YyT-w|PI6y~p24=i_a@!8+Nv zRawJ0w!tg^0@zuCI0}dz%**~u4c^>b?-X5JKZpVfaPSnr#OZ-SZfvBb@L1NAL-42S zwNI9!KmCDU4E?>1r(+Ju+l8M)@)q!|tZn+WVw!+o&kcc1|iTQ+TJPyq_G zy_c6kNsZB9l4hX?NlnKbdYytim!Diod|lby?x%lBG?Tc=6haPvPYoWeF6}a>SP$Cu zS}+BroTmo0kUL!*nHKbU1M)@Q%7z7-qw|(nI-|#NO1#QNaTXsgvnVAoKL7!6+6 z==)q8_a;S>)8t!u^2g+H`Wu5itl9~=WHuROt8RRN^ zuj13_%pLfa+=D;yTLW6Fik!TQ&$1cb-u-fBz*%xyQhLZkXWI%Ly~KDZK1)hKN53Kq z5C}NC27la?S!r5OCoj^zbfPe4cdqb3AZ8^Gw~gwKr9W$Pb!?{+K<5^9Y&@uUty8;l z>C}eIx`G{Fwiz?a{cKrbZ==dIe{ShEe=@@Rbi^;3TEg6g0G&u1%>O76`R*)txlXX? zCo+8~B_1%TtTN1fdcwY{xv!jQW_4fYzJV*SD!&tb=Hr~nYak38&#Z#u45yqn z$EUgI6omBYe@}0OPdsM@o(e1M;-~EB>_1pP3o=LZ~S!z`Ev))Gxp&t;rmTK6`~Nsry9(O!jJjj=PYIF++oU&I38>J zfcsky{;%ENT04-0-rW1PC9hVgLr7gBWReHFd^s*(-P%;3UMr>7hT%|?e&W>0N8hdp^}u=@=&sCR4{;~ zOr`lYIOodjt~VX3Ongosbu{R?EiGj)peo3Rp4r%IiLPPk7P(a8LZ=~J%^fwG(yBq& zQDgE7SaohN>L~dC$55w>{@A5`7OxeAwHpBY<^wbjB!WG6>(GweA21Q>dbS-3nU2caa4F*~|}2tuZbY$Wahsw$fg- zY`&O-HyTt#X<-W)IYK*f+&GqVMh;(8s#;VirBph!$}n}4=O&f0RbJu_t4n9z%D#@q zbP(KF*HnbQTtg9^X*)zdp`i%~8;eSPXm#_WK@D+s08uN@mk;SHW#TT9(_a&Af|M$? zldKAwoIB}mfsIdNJ{y;-t1lQurNUvDt#W)NoMt**dBz9&$do*!rscS)Ue)o9-05#= zMG`N#^rt5rTG{B9MC?g_Zdf|W+Rc6sUIP5D^5X2$+r-N=*f$&W1*+s}_%v%yW${6_ zhEnC4x{o?p!qL`;Y@9W0IgEKF+W4x9W%OZ1Y0Q=nF$6uord>;ce zhJ|GmvC8P-g5X+;gs;fKhmf6OjDv7*D(_?pn^SPIV6f3bJ7~!?RRs~u<6gUc3_~qx z^gyHLsIi_Oa&35_ZYO5JH}HJ&M~o)1gYxR1Sa=S<(na*{C0v>@aPT4H5D4>?Q44~Z zdqYdnr(Rj9wuEzP(U{f+X#m0BF|5A?uwckxnS=>GVNDdQADnqUFWsI0@A=5^i+AB8 zYvuovj~rV-_8!cX{7a}vIdChj{g|fOlLr`O9TkJMUPy$)5nma7P!)j)@8P&;>tsd( zgLF+ab~IWNYwfcPcBcfHBvL!>!;}ptHbdyxmc8o^HCFF5x2S_W#81$Coj9v23wUuR zuY{R!w1~P+Yt!yoy1jqDyp7JfP68$N1)MigUWNSWAab*p?lmjWK z855)3Dza33ixnvH)W6dnF}93T!@oJw`6b$T$v3KyIX9TT%9O1)UqE?}1?TZ&;Y?y% zcCH)MiDIuh2AsPlqG3x`KEZ(Z!kfPZWTX|P_zk9jck)9$U6yV^>b=;OU7}5l1iGce z4n-*VE|4&8gpg{F4}MJ9)bQZI4iFzfmh4)>7P2mRDfLG1KId>PFvm+*WoYXb_iDjf zOA@VFXqXaA6N`ce=njZ7GjmhTu6JBXFS8mBiou9`xSrjpd$^*F^^{T9%HO8WYAa#R=@RTBy=clYU`n_QK!>Z)IHbBw<5{_w`GsUZV4Rle@A*@Rtva_49{jFq5rp-~7yVxN-hwn4Z>pf6mA?2m%I= zkSqAy!Pt3jMrx5#_kGjwy!{aHlsli{`NR0^<6zYf$$(|}oREpn1c%Qff62&YL*Pfk zXPkqv&$^7%GU2n}4Z~;W{{wvH{oPu=;m8bFhR>7Obzu@G8P+mnp-=pxj9h!D#v92M ztZ*>KU6YZDbrO4o!{^$AGwIW{gG^P}$qo^OBllcJZa8<;MuWfL0^2#BOja4&+e{!C|2BbuFVIdL( z!;)MST9WH##5U*E{SvMW{mSvhA?sBSL>J$*7o;KZ_+i^`Z5m@L zL*~?i=X#w{UE8f?-Cm&&rf+%GnQL9Q)NZfAwx`9y8QrOPy)fZKi6i}iTtqqdBK1OB zWJ3xgyih>XQag2_6T$9uV7Kz=+z2yN715t^Oy_XxqORrAICQPQqkQD9lQ6G#g>cpO zAW)u~Cek6`Uj+K49C)>r|C;sK%l2Bm?@FKy1h6I$NmXiHzp}{K(k5}55Ey+K&8lVHi z)#~cnlRW=)v}2Z1EJLNl#;>ZzYp@?3m8A#~aEOE%g zM3sK$yu6pq4HH)}M8a;wO0q)9YZtS02Yl^+LhGC8|%K` zlPzpqx>RNyNXTRt~~QQhM_|0{gH zchd`q#jM)jr&>BVuqUH@g#)!n;20%%oXt3<(Qk2xPaC%|!;yEHC zM{|y)?^#G!Rm%iWMaNdt!F$n%bVk(#e(8a#N&JfX)3}jbR8ZBS3XmRDX}x75c9-xBMxF`;MXxc(~#78!@v%+1$-wKhL7{*edWZ#c4`)%E( zL>Cn@y14)56q1&$7z|L-bc*PxXiS?ZZl^d=xP}Zm_7q>yl4Ngf3wvur1Sm1|ccc(5 zdtM*^DB`EDQt-j7HJ?TAek~eX$z!Vb==e&1=nQh{+su3TR+)%g$@`c@PW{OES37MR z8Gm7PylunC=wqen(8DV@r$QDcnZXwL@Kjzh!o(5Et@iKfGlR~eC4dv z)HqCM4d%{OA))CB=Z@43 ztUejB75hR8JmYM{cH`G(lz-Y^qaj?aAq+0;NUQzYJlvc^GF!6sLMSnW)12;}Lc0n3 zWfJ9pKCPl*a~99hxeqEkcLeO|v3=X}Es?`h#}eE9$cmONy($s|2SYus#Vz}G`a03^ z#)+2wTZO_W{Eyc44eeP}MX+-BvYDxvfa^9C&f1Z4xV^oGtqtH3jeVrDiJ>EYF#z?h z-x0t#J{o(~eaxN6$EW(8={-lI+l`oIo64iVX|0IAGba8*MSM*KhNijak(&*3LJq1J zG16yO@}OfS!xWH(oz9Va-d`VWdQpw<+NEcvqd=(pJdEiVejJ5F6+q!|dw z1|x96j}$6IoetwBh9LK}J+$Zy#}&|;ByAlKg$!zXdKpG!=E+ZaL@t@H%0*I8ulEbk*5n}ft^G%QYxpQ@z4q|*DYg|eknAR8@>)KF zPeM*IrM976oOJc&UgB!F=u1+!IWC$fK1+<)bgA$dax4Kb;35m{pBVANWx`{~)#8|z z^}XR8-RxBHSMgMonkvgaay<2QMT>6F+Sti%7A4e6JmuQ`CGFnk+P$Z%Z%1o)y1riS z<7r`isd7q=mmB#-|q;ZXpWoxo1+@y>n0)Xi_9KuY-*5qu~P>3q$IiI|y7e&>i|Z*u(1Gbw zne%r3SQA_5zQZ7(v2IIaJA*P2nf_si*dBXIT5O-?ED|*jn|wao{ha20PIf<|-OmX7 zLHrNtgtKK#8cx)~nSdcZxj);;s66P6`*SpqXsbCGM)oPfrrDYUgMokR=w4=s@)9Gn z(JOPNbG$OeM3v6`)&9zy&cuT)WWwA7roUyT5{Z&rq}&ePs=(t?F}6&v{>CJYv!ryJ zU!>tMzaVh5wa5H2Op9?OW*ce_4sy1RZuwBSPW}6`%iTQ!Yg>{WDE)*#xWvnRVb(o+^U*On8BLN!0T6)XgX`cmxFQ6M#nQ* zP{LdDQN4n@z31)wE_)#pXcZS8R23-dgKn^&gskMUnd%Z#QjyM>YU?r8zNbq0C_N#b zHd>ug<51wc&NH*2yu5ad?RR-4(Wktc_LfWHUX3M^5)JpNM3k5Uh$EDXxA0B(^KFg4OAy-bZC5SzP6((n&jK8jftM^A4vo zy!dBh&0Sf-o6JowU%Q@GT%Ob!|`9~XxD#;h7Mf!mK7fy+bl!>wJm&B`T{Ql>D zfDXI5?!rr?lb&nm&2?9qG1fd4b&R!FA+^$d9etJi^EA7JQ9%Ab+TI2{s^aY94vZYilf8u|&L9|QPipdD|vtad(O$8P0;qa-uLCY$k}twoSFN3?z!il8MONL zb0lB^H=*YP=Dtd}4xXmc!YsvjIcVh>&O9le^Lg9SJUimfF?^gIMb9qB4+(Wsjd_L( z^O?CXV13*LY*dar_8q&>#OUbuw)=@?02I*xc5S_8ELmxa?<(2g!v6$>-U zYLIkfQ36HyElB+B`Jk=$*z!UZv-d!h6LYl3NpaB9iqa;zS~N>ND@vQ~CZw#Jc9UVh zjZkTBGz2rW`{ApMLGVpV-V&0xgxYNMZ8pVLv5~9tZb^88`!5$uuh7V)acdXQ8S7mi zw|33SWDgr|@K366Cmj&LFEy<0J{F>w`dUQX?-0~vI|Q*2E|Ky2il)`xh-@|^@@R5D zMhK$kc&(mSCEzFlFj`%Bn+S)7l>GP~0m1HvIRf4+32LLs>-5sWo*W z$O{$#vNOV7z*BF1gh}3!0!;t(TX5-LZ|CIVIZTB^F=f|o6!qs!q{=-*>Qm44_G$N@ zfaHef0_6W{)D8#u?rXm?#Ci_`F(t6%CB7eiAIn!ty*WepHH-hv6bRx|HepZF!p7Jl zozVnoXJs3E7je5>x1*nd4C)15MTU+nYSSoUC_mHpv+HMZ@0v}{w#>fpeKx)UrFMq- zL^3;d^z|Qlz*S3BPXmW%pAB%>Z@-UiTJj+2RWXTGfnJHF-PLd<7sVl3{6vxii*e(wbpoNPc~6)dp|FG|KkcbGuiZ^oIiCKshZLwowS4W^VVI zG@gNH@RKpva!DT&RWEP9xB{d~-F@cP=!uku!JJhKw`X<#jt$^O=#y%dcB6YD=v0Bu z_3 zI!1i_G@o;_Sg$q{{cuxqzjZnRJirpLUVTN?D{47?zK6?Jlw)5s4zWBNAyDjdpr{xhcZCtn6K<5g#JH@En2D1vXl4Lxc)M2td%+J zch8_LtXgcV#uOIj+%`OL*@yyDoI@vFV! z^tRN3?a!VH6vvJAqy`#qSjU+W`k4|Yvn3aY#eOzU#liuupMgfG?nuN|t(E^8OFd`` zf~T9gXNZ|fKkA!vh_>(InYa31L@oT!%nDyj&cIUp*?oh!kF?pY6gILRQz2wZ-DQDB z~!Zk1kzr;M&|DOH~T4Oz~r}RgGu0>6nFk zVIX@AJYg}n1ChI_XGqrb?#5SN4#oV>N#^}oc**EQN}`SXDCau<6;Vjpmt$E9U~jG) zzTKEbd7(Mutyya@hJ8Hf3~S;wj^^%M4-(J zow(W*O(xX_zPYikhHMB z5F^oSZE=*@EjxQ?*YI6y}E1*SJ`!m9IGOwxYN${r6<*rJ=QtzFC`kWl(L~zX!E;ekEJ+Mr}uN z#R-|>H?+gTUYOCjqi`}9tj!tDcE+(M$Fgkx12!G4S##lX?ZLSe5a#T|PQG=6wr^>O z{b5o?EvNiW?LfKDN6xx$tIt+cegmEp?acdA8)^;gJvI zak%q?4*(0XEBD1N*d zE+ffF&E4FW8Peb0GWW32ukSukgUR+cE!30__Ce12YmnzD?u%Hf?P}Xn#X3HcY-Zw& zZc5pOCbfOnSci78v1H75TA2M|`)jjJLHrdtL~wm_pr+B-HG@bZII8PIaS=>EV&|(e zcfcv;0#&lrXzSpKozRuDv6co9Osh^FGR?-smor&MlkAb9qaeq#1O2vmY*B)TOkBKH zxtmQ~EP(jQ3_Il9UeRe79F?qj>O$@n&D}PKMQN8ZOxTu8^Jp3!`=fJDk0gmILvSUZ z>7VA$G*x^uJF%2zb_-UW!^!Knt<5t4~X`p ziddXfq7;N|phO>8T-Vpsei$XV6H?oLbywaZqC=lqScXYBh)XX9dltrIIq!!ToG7cH zX6n@7Yt%bFAmS4e))OfAc~hj|#+h}+h(HGkg8qpn%luD+X`b2{05B!+S2=|O~x@MeK*Xb7Xob?{m`848|SL}V?- zr_oM0Ie-9`yM@G{G7&+`asJ>Za_hg~V&EgIeYg8pJR-A_(+%zBq%e|(&@J0ImYtE@ z2%ID=$34{%4Yv&+CealcXwy4I8+R6Q4hjz6Ia07hH3?VXG<>GJ5uj1`ruE&2i|l&(P_nQ*eOyBF)VURDdrwj1{C}7j*q;R zYP;>X$ubGNKwzR2dZ!^^wIFGVlE?3XPp6mgj*ixrBGgIu0{Ia%boW7#h7{X&C7*zv z;!S*T|NfB=tTTUHFMx}l4C;R14ef;`kzyvyw* z-#`9fq{4audO8)lAL(u0yn>~2m@^4zJq0X#@E-vB>%$@+8?VO|0Nv$zazs=lG)?Y$ z0%ykqeI3QzVaS;)_dtE7GE%Rx>6BYPg-yo;w^oBPt#5DFuxbgG&4c| zF2L|LCl`7_{;?{oCmHBv2L|Hu;?z0NEd_L-jmc@~zKAJ}`hr1s@Mb~(k|{z!ux;Q<;v0O25>|Cb^76ssBNgb@x^!ZsM*6jqEet{Uf8l4JcXnv218AGLbsRH9$}=Xp2dFMcvAZz0En)jAeL z&+J7qx^Unu^qOad0~;PHlt_R*+gNI)sP_{~L6pXFD^(tpx;Ct9S-!6F?vxx>pPc2+ zV0@a}o4z-sF6W&aeKT#<>dS#PZqQorfl*Yy7G4co_(!ybN1_z$Umx^BXNe#Ug$T)H z`aRL%045Jm=6U6@JLfW;prd0h+?lhc=ai5ra3Nuu7rNmMJ?5JJ;}zTMsv!SL4JMMA zC5C{~^ge=R6CdpsL6f*sO^nAi*)X2_CMezVx=cwWOR2NR@(wF|(XM`gNG-hRW~VXr zShmVTfsbe9p3n%gXZsmYS?d`-a07A{EJ~~K|JY`Eq|H}jzD=v4Tx|wv4neviCtztX zos`F^y}<@;G^iA0#@Vtxp98IryS*Ta04&SRkXsduzj!p0QAUboZSEYx!nr?MKr}Dk zSynp;wIga72ks-E2p3&aAQxR%x#%Vp_~mv@&ax?|$K?;&MgqiwNP^H==bGbdldb^X zJYHgd6v)%k9X?Hy3U*SrCu81dm8wj0GV4<&@L-eKg`1^lTcl`P++B>Ll9}`PZ{AdR zVtMH8U+?Gs$3HFa_!_kh4Q6Q$b3F4!oSzqm1LJy&ntXl*@EaH5N{}E6DMFv##gGXsgpyWly%Hz(5wj-^&0LG4{WgU>HtYO(}`#%k4L)ec$W zS>`Wfx*G{_Rerf!;ynR2YqYP6@Ak+5=_vFa&rFCkFnWwyso{+ zFPpng-v&dJ`b>K#VAgZHQCA&o`{vH<+Z$W8?5{i^t!~i*+#TvcfLByJ&9h|og1EG9 zvwr8*t(3fRuWmH^V6A$6?(KI~Xae1@~vEhfPe%}W{ zw&$jol9|z?_a(WnW>f6)x70!O8TpWA5(W>|q<&TQSx-^a=lQi;z&J`ieV&Kvo#!Hm zr8>QU%>PiR1RBCwgpd$JA;mC`l50H3h?Koz7PI<-aAhA%&6_jP?f7&Sph@BvFdP(1FZL zXzh9a^N?yR6fIz)=?t$A4O2GLF!3X%tywo*mWAze!5 zItMwlO65@NV6H>anE2#=tleKNE0Z~KxMgha%%j{mdtQqWb&%^y;lTKonZ)$@IvJ93 zyz%wLFp`K|M}>;{@_Mw(g}R z8NgJ@a2`sY5e-MvM-{mj{{SWTCR>BIYocOcA(3f6wJ~nCm4-a1*cwpp} zjqmrdSD7WtD2HvSa9{LbzB(dO(po>0*85l}IOBSdE&2Jbk&+|S+!uHOO)Ju!hR@R; zpI`i|zhuOO&+%$6G_Fd6_v+~WNb&)-&pjzpJ876j?ioTfVp*kCeu=L<6|EfG%6dyH z7SZi#lyq-GJ@=HadQNo1xUu?X*Bb&7&O9R0>Rx*Fp2h0be^!a}Sku7kV-X1_|Fuzu zDH-H)z796@k|u*SONSszQgtrj44oucZ8t2&uO~pJ%-^Q^%(qAZK1){aJ6O4yvU0Pr za<_XccN0Dnlz4eU1SYd`j|g|#x<-w|5m5!eB$u~)vYh>Hgyytc{1tpqRHQd-!7GK91C82DBl7z|aQ*_a+I1RCsi>U9$oQ1QmMg^H*PN(QXlx z%z*w|ErEu&vp4u+9q&cjHSnGYip?+?xX>4C7*Oo@L9u2l*653k8X&Ki2gRDK*mz$o zHlViVpqQu0U|;O%D5eHmO;9XpwLQmn#}MQ*QL|_UbT=y&F`!+(!k@nrLDop;c;OEC zr3e!yX!lKv>5;d6Vt-&0B>}pTq)8mGOQD;9-|wo^JkFMsMK!BjvJv~Si9eFPnp??w z!nW%RHjLF=3O?^mDmv;$L+keF4#8H(5yAonCJg)MeFy#Z0Yn;Q#TcMiLkP|qPp3>& z#AJZo8+y?PKP9jAB_~GvXk1*@LkA^q3+w!zFL`k^>TRa%he1i9VsK97f!hd)-JgFE zr87&&P;1}aBt^}jyJazDIy6C4Qc4hpm7Oi~tv(!3*r9t|wGLVXxd*-+~iuIKchrpYil>*0``qVHp0Dl->~}rhMh2e=9$3E_>~ZDBnqD zs$zG}Bayhb^-bw*m3&|fIy2uA9(Uj8ylyd`OjJT_c_-gJvM{sblFl%*8(Z^EZ0_!LHLQ4Zv8CQ=D=_*2rovw|>u`MGY%s~)D=sdp_U3CDFmW{19XnPhEeCDU*9i~7wAAR&Fx3O%TKB$isMA0+Q}yMx>WlSxj(LCJe8Efw=XX|gSjt+(82t*?1F5xaVAg3OH$WiE;=a%oE4 z;dFG#j9f62FIbpRlnkvT$gGvz(6ptZd19|TA>rM9tWQ(P){?YRU(v)l8iOoVTUn^% zSyQqp`5^}%ZabQ^R;}om!SXHQ`qV+7sb0w~G$Bt)#H+7)WWj0TH9hQn4UVY9T&;#o zyn*Zn`Bc^QHBVoP{+zBHv@w8<4b$_u`y#6s1UqrNdTQVp@5RlCcrHWDEE~~58~(KM zK4+idvhlS20kK$2nlr;Pu`^TlhG4_@R!QHH`D_Udu%lma$}ICVq&$7pO$wLiRF3Xn z1~tYWM)qyLZ`}U#Wpv!{F0spvc0oSBLL^Cyu%W3rt*3t9N<5lFw7=0WeWWnnKlf{h zd$q)!6ifYq3<;|&Ys8dsCfXR6*P$O}=6(#LPL+hQrn^%_Qj13S1;oEb+ubXqBYFMM zeio-=i5VGgBSw(7{uWJ>1c9!zxGc5@7j}_X6>23HojkbVeB;w zef2dtOHE!GS^|G9#P`2!za(s5KiqF@NSmi`=+6hCmpsZ_UjGm6#}dX87Vd!DJ! z_g@3TZvx?`@He*DG__!Tky=R7d&fF{AlRsst_GODYlLTuGG?1N9n%A@z73d(z;3#9 zs_?)|i?5`0{HoM1!?YSUBw)is-K&y9_uarIgKmH+ zI76iFB?eUYv+lN6K~X0`MNsU=4^Co{`~b~Nu);5>!sD8kGpTxE+0+o+!5<|M0C>{^{f8M zFUY3GgE^}&#Jpo2yWEyoK!Bz`QW|*@qG$EQ4<`0@51o=8zB<|aV6x`P1>e%Tx@NK( zhga3MZ#5uC=-~01M`k~h)2(`r%K9|K_rTI+xmmaCxIQ^dNC*(yL}(Ojx(t1#s=IIZ zi~wh>)AbcrC-R5DKF|nPV2Iz=+M+@xgvJ#}m^&I4xW`&e>?Y5(%jj2N%`AF^JU=kW zJ>I|giI~FVhJk&vZz}7r7-<4fO7#?%>H;zGk%`Qx_GI?-ipjOoYc zqb7|osnJsvMV&XXcPbv^4Dn!wI_^ZhCX_ZLKV-@4)}!n9>q-uKMok08urd@A_XCHE^Ayzi}7uNzkKaw*jEet3j3qj;yd-t z!1Y7&_Rq8Jc<&Z3WZC>xOa7q{nu2!JPk*qkrl+OkzK?rVrcYK8DJWOwmi>vxAqlGR zWG+NAErZi0F3n=hq=QefmPh-hs0nw3+M`sZSX8dh5qBJQaVKs|f89-U47c`|Kx#sv zxhTYM?s+@xYpT_^CTR!jXWc+(=Ol!B?7NHhqHxY05kR%fddQRHHt9PhLr*KQGh?x9%?p zuoA`)IX_)FfHD&zgnSPx@kK?T@1$#z=}CFcoI%F6zU4KX(TcNWo+*7>4~QvammHo4 zSWFrF)OZhU?#sr2Wu7Vbiz)X9dl)S9Oz~R|93-av{CmcfAKQh2z`fC#n-NgKHC}Ed z);|xwPTn!UekW=b^zVYdDVb)#+lBY7I}6av6k$*!o)7D@@uB<$7Gu%+xu>WY9kC*X zBD$|kb?}SN3ATYGW)}B_l&1L=N!F?kol?EFmG0o-jaJ=4>!Z zk#gvi#LsAo{RE=)wYY>9yMO2@uCL-o&SL2-5>UzkG;P}sWu=x#*}G0B{(ks$va9Fl zWNPyumao~C#S@=n(bi51X{1RPQ zs=D+$$xW{%Vyk+O&(8k}d((b6r_%;$G@~A)oRK%=Df`4*auh$;GBT;|TL0R#KhADE z9FqKyI7>@KnJO7Hpc30A0`e|Y`QncC-GA=iOnRNIk`8ClS{g-?HR%5Z~Ck8*EA}sjr|vp9z;V-U9W6&;p4m#w`EXJ@*XE zO7}sbCQN}VLeVF;ySMjfzC`}#l*Lw!DeZW!^)(4^+-MP3t!vz|-<85?zqv{&Q@NC> zyboY^qcFF+5dmF%DVspjrJ@~FOIzZ0CcKU-3cP-m7g zSzMG}rr+reT`!HC_zZg?u{GAviJQ{Tc6G-mZb)CFBH7}-)kI$`P_^dyjUGAguQ$t( zw!e9eXihxPyymRGnx*Tg*vu;hezpWx^=!J2bCp7t%Kwz3sd%9TTCTYKQDsWp#I>6> zU}1@1MM879HX@9i)HybXqZJK)+}IK|800Q7VQp=~pJ4cPcu6q) zBK5D6W=X_3K_FRA3`nJdH?=L+dYH0<{yh22)|T&`bN2b9g|;3*hE)5uvuB^#(pna~ zbK3B4b8}Yfh}f#SUE8)E73-L60_CHFu~n-1ORK5PFmBV8kk2~1H)l53$Q)?{i=~z= zvZMob)&~KJ+aD0c$!5_9%s~9Kv-^*hQ0dpz$aaH&qdKd3$;=Q^x{^)kSlo{SB|F;g zOhQhOK1sChpu`hmQpYx%f;9<#CXJ~7#-1a0+BbH6&{&W<5pb8~I^yntX57x_n0@%?<8+Ic;+o`jyHFo(Ja8}(Ol(F% zSbG0d{7tS^y%uy~oW7Mjh)l`u*E1Jk1kYZCCo#=jzPS4BQpMEQ0}H!3RpVM~;*#ySKi~)biCdN|Bw8{9!S1mSjvY=Ve9i z+sq{iuu1@+pbgCAaHfwXFXW;h16lTxguv)DcAS(*pU{}h981v?fQW&Is-lOm$gNA3 z``WZUP0LxC5!I@IO7TT6t|r5U0n0IXB*y^G@l-+5zlPSyG%AHYu5OMZHO??6>Bw)5v=aw0;E(Z(f@cl0scwlnUV&9 zk-a2N4bb=m3La~l^!#*4_wSiWaL?nPb-$srtsmo8GW`^LGP!m9%pFAg?n5#%CZGnj9)@KX-}K3c^$p6S7nvNJ*~VxQ(MLf*YP?wMT%Ya8nx8*qJy<%$=-*M z!}2Mak|VE$9)UZXdO1;-Egm@)+SEdFXhTVa>ZgO$j^IsZZ|~pUq`vk7EZZLt(%6(2 z-7!6@Xd-{&G!vNfaV@fkEj*yWUR|?2q{Rx~a|WWEkc*at zZV=9tToyfZOcHTV=t;BGWkz!PF-Vn#jHC&a)hf48D-btR24JY-McnNkKm?b}sSlb= zA1|#+WJWypBU@~L47!!zqeeQAw>+5Yg8u70bM`J}oJ1e^btu{4v7>Wwk4kGK=To{=)O5s!Mdw^%{MEn`QW! zq+~Vig}rrC=joLMM*YCiG@yNtSh6x!?i*#WR{I5Ikh@@h6bA&slw2VP3Z~;ss4?>f zPTUfD*c58kH*qh%n7Mh<4p-Gz!d}AnoAhz^u-D5A$k&E(^)_Nf0J~4x(IQ|uk@_dQ z*)0CA4sIHC)2W;Oy+0Ia3!Xo%EBDKS`^|PQzdxI#8Wjhc-DA|PN20vu!YMSf+!|mef(Q7mH8%tNM9?ZGg8@D$yb?s(z?FDomVe^ zo7^;*C3N&J=u%{O z50HI>r-jtreM^CZRZxFyafei^a6i{b-&lPURdxk>AHlIbg~#>{1%`Z9CHHM$()&&~sK@T8u*f*ps-OiQhvD^{wW z5w}uLGJE$;f^$6y^y$m=Q%p$UpyytZ3v$G}(EQD0hMadfEE9BlrM!G@#&Lu9lpAT{ zS5oyGPiJWvO`BVZOQc@3+@)@kQ74mo3xM?2M_1Y&y09-8P%+0U0AW4~t7N=}; z*)DW*6NTLbAOUrfdeTf0J?+K>_t&_qPqR)S<1de|Lk-U8Q-eO4Es)o_iGKQ!EtyFp z45lHOXP!b3fmXD6A?<8^DWVcHX{YmdabxVGklMRY$ICqP%L!--!!ltFO~$Xfo7g1*(i%YHI2vWq*hX?+PA60CNXPXGEbZ=Z8o}c$q!ZvZm>~+TRi#OCTN}y66@u>cpc<5uYPOT|=jwuL+IX+0 zs;1Ic^I1x}i+JzO0xsq}FNz}2tdf1OH@QwS5omPX1Cd6Np(6J>(5kG5J*`F`zjz?* z&A!pQgj=y1eOndsT{yi9dDq3RdP_Dt4BoJk+ixbsNaC1s+bQTl6P`}_?eL@;8Tc@k z`lCLAG$sQxlG)-Tl4*6D@<-h+s_@hJIzxQD%uX6Rmx{E0$4qCRX#CQuAjldRUtgIf zZdES#I~1E0K*aUe#}+Fau0FGK1Gp^GawlG}5Sh~gUzNgj{S&B%?_Q_3FY7^O$t=4p zo2QG!nAOw!D@Z0UhH!~Z=+COl>THw{3AtRHZI)e4k^0P_dOV1Y{3QLC-sc|gB(rwmasiaWrn0 zqFw@6>SW_2X=L2p^OEcaV*x@9i!@IZ;?NB#1Dn(SfJ_mAu_et$f~6HJsfaVSX4tLC zU=UuU&RJoMQKGtpg07Mr1>~}NOhl(_FNd!z94LhIybw;(EB0XeYebeYK1FVy;2YI! zB7}T`oRqGJSMCI4)*bF!JnY%X*Os__-b^$4KV*7~+_7x?RZQ z0D|vLj?{mU>i^uOei4k2bWf1X=gKb>xv0+`-LFR@f=3B^bgLe16Yi9%wnx|N(d)sZ zDtnaHqY6HBG2iyF0~qrq3+B7~y3n1|SSGlm{!0F#;_2m*N_r6ep;;^!@V+YUa91k) ztJMFM(KDB?aWkp1Up#%dkEg4?bE%ICG;=_G<*K1dL8zmx(&qQQOG0;JgB#fooF;eE zP~RBs2ZJ7PHwRgDq_hjJ@+55>96oXX>;#Z@dM^Q)9dRRbtWnRhh00j2P;>u<-Tc5l zY@GA5T8qwkh$;pCL2U8Yq!BxwV{pq&yVRVC`5iPM;bXQKd=vTU!;{%jSF;`I z;N+0TWReVf*0nILT*^A3)YiB^Z<4v5or}qFQP-WBRbKPX?BZnh%f0DG%+{_^)t0kM zx^B%!vx~c%de;ZS$wdsfQ|dn+BW4Th-_6O81#`1b^y0zYVSF1V53TE%I`plQ`OLncFzOjJ?;+J2*>w043ZG2dt z*~gZ25m&IdXML7*zj`dG`mu)b8|%kERhRyE^1~OCUA<&FJyk#Gk?y^;VV~aDrT?bs zXTNRyZ9I^4Hz}vSri;0SA<6XQ(Dt82R|&=N2owh*E^)G?yWCBnBUOKplrAL#x1Tj@ zibVe^U!z}H#*F8jlsXJg!_JnOd3E4u+RXBD)FE@NO^;ox-|45iULHAdTl&R`k8!-h z#AnkVb-f**_*D8X6`{eCv!jl%op`(6KylgGE%jx*CciiDq&Qf10z&%qcxk#mJ{;Um z{sii0N`|L2OO_T4DN;L3|Zgiu!|B7Mz1tBCFn_2s?^o1eOf9Lq2>h! z#`mNm4)mkPb6+B<0)gK9(1<`+(4srfJg6|>p~_VYRh7CEy|?ztJ&~>lK`3%Hf!9T^ zh9!N@cV!3tEmDk;cahsIsCpeYR`L(NBbvAA*`efigC@t(0mBQ4i(uK4^W(!8pT#H7*OY8Bm4PU4R)XS1beOie#Vac2PiQ#lPD#;H(qI}=)kXE z^c_E8?uU^CeIiro9aNV5A!Nxys^Z7lF~0dr-~=lw1o!A;RPhCiI9cUIvRl z0j3kh1Q7H~-7-yx92p2&-^CuVH80GWmMOkXFxG`IUhqPpyJS%!3y*~`!tZ6P#6G>! zoCjKsOoy-C_v(yxtI0ymo#X-T2k%VTfgR+7se>IOo1QE~+vDP*_=D9E1JM<;zh!E) zoHjAh3{jTQ)wx5olQ+s<6>u2s%uLhqa8yFH=hG{}7B3-j*uBP%Wu98<#8O*(TMq@- z8}IPA&Qol(jaG#&KV=5=Pnak17aP~G32Dp2ftffBLeH)uF1_F$+dB8e(mAs;!>?2} z%y%H%WX7`WHjI=GdcMDuV(EQDz%rSi-rj_b0MTy$HAL>8#~Cjstb!L9x=^bM_%ZkE z@B%^9%qRXcfJ-ESO+Ok%P-q|6+qhe@sTpU3F_a0e=M zRe?4SkY7miJFdG<}Rr#z;a#U0dpo@utcX?z^%konhtN;VF%0X_w4?GipqfVf8 zB=j@w0H9`=G-HhsU$rOGUb=j>?%H5IOj(}1ri>Hl53J@O2|1uqWyPAh^qK`S@CCYJXag4k##on)o_eli{^hwssi<(QAeY?s zWBzpcxW~g=o*y$(eKqjzE>n=;ZN&Zv;K~euW>2jE=;xEur!g)(`TGp2IZX1OgXheQ z-Tl(w**rVG*pM03r49Is3G^0r4zeEZ=Vu$A|FkXAU+qPEZoT;j;mGw8F=HpjA?_VM z5OlHw@$T!0uy9DozsMS)hNh#XtA*UoHHqB>xy}=^*xS@j|@=C87W$iJg<- zK_C=wp@S2>wE}vm&&v5TcQ{!b*LR#gU_UjCJc}H))>D~?UE5jY_#PRLd+`l(c>ZPHxzmczs<;4sw5RJMarFGhp3|l;8BnOU;e=(Wf8Vo0r`@P86 z6K76(qJ7-VS6y1s#>b@7$a)dt5>6?0vD0gWnguNirY86Zk7*MBWo39AcPsgT@T}%B z*hr1i5RyMZCTpdw4BqsH&mvDFf%YY35JNHS%$v z!E^f`YX5d+j#3SS!s!d4P5TGRA*kMDnpl6W6CVu<7AW*$Y?{)Fo3t zf&A0bDXe;~O>a%TzA*jHW3LbUsP==dw$|sS0Cy!eg;WIUNIg)x#vN|W4A9rP(`gQ~ zG?QkKjX3R9F6x}mDYCM?Ba!igGSiAdzAAP9(5`JmI4#X9=^$V24*?PtPXp`ZQ1I*GqPG!qz*F_0;l)dGR#k+t)d zNrcZxnBv6ehce&t-RGG{%NBzk{n+-qJ;zx~-pS(5#QZ1RcU5Di*t8S9=sv{y2;xKf z__Ovg%UUEZKMTZ#aGECbHD*q2P0W8ptwAQilG4IYbhnC1sWp7$zIF>ZO_Wu&$cSJNBG^j} zWM8tsziv^y0uv(TkqOaiffUXf)z}PGF~iGQ@$R8@>AKQ-Y|5hbm!4Rkt?jMr>N&cu z%N^B_ol>fs!Aw`rx%kVO;cFT))8h54MLb0I=S=ix!<5YEn}KsGy~j?(@i%n;u`Ydo zJrlcMBAKy1y^*6nDEdFi%%}}24wfyuWkz4bCwu{ufFUhS4$V}I&${1qOO7;YYxkFn z{bi27-19p)GxQVtyFW@DJ{kX|rY!~dlV1k@xjK^KyIvYxpRHqNk#!aKL#bHmtCVN? z{syKlPK?)QPlXsvqKxEeEcH2ich&}$=$};)Z>V`Zmi=EoqJ|+>!xL6RNl-(Xui@O{ zx|%0qSyYA^Ugj^#xuKll9F(Qij4G&kX~87~Jr^9KqQf zKijNJ>#*a~!`I{vhaz>FQC{aBdQ`Mumped@;N1m$y+$7~7=!#Hwq0Oz+ar%p7q6*L zBT{|jU&fc+Z`P+@YDhnC%hKx8n;O!8&wYoQf}dyDPb+XLKO54IH>5Y@O7lNI#t^s% zk1z&y`paGZ@<)I9oxj}ZFF)~@*FY>cQ8uKX{SXlg`zY+k#`D>GgWs{E}@5}rqarjC4r_brJjLL6T$*7cE5fnRscYB2I&Rfkp^l(6}BTlg5>szUH zM9+EDy1r#Car!Ad))s@PIm;WvY{^t>A7t;jqp$t0&{&$Cv=p=A@j)g<*`jT+*T1i(oxc>b5fIhC}GqnPC&rg|sE zvZeL`$Im@Zs8Xb%-{?}U_-s3?rWtN;;`GT39Y&YiNnPO#i^-t%$?+Q%#ad#t8*{|w)G5&b&TTG#1DLS0ezCmi7O?af^Khu?ve`fEweU80l1|i1f93rT%x8` zMyr{FDP~SleXuW9s7~|;e7vw$<-jaKkD?I6_;qwwlVVrNROv~xq+=%~*e@AG$w_HM zV?Ser_>y{H9uov2O?H~?KYqFb$)OK{I>g%qAwSCO2XL3WclC(6D*cyz*c}Yix$}?- z4-zf)b!=`|y_=?YRDnMOMZ!+6Z@oWQ5aZ>LN=`c#edl~PnZ13`o&kUHaey<&?u*p# zd4+uBzM}i|)45?>W2>&I1U1Dym3T%Y?r@0-VjG~!emc=n*H|!d|NOGqtl?juKAMHoPrk>Az6Il53KRzma_Yt1bf@TqJQK3%Vl!;rky@mq-4=CTN+QxaU13{V za)*a9sMQ{VX0y^8F26&Mv!nlct}Kdj^MV11S(LyF)c!TFqFiL1B}9FQ#0bpu8G2qS zexMf85$b@!7Ur;72gQ$fOVAEQjGtAxZ}xEz;Y-8B@N4Q(@B)lX)|&OJ%>C;q|8=?E zR^`h1+EpEHv>bLLMC4SE9mN;TH7>Ak5&9*odfOEfLm+J1vi6Neyv~;WY$vb!igHk> zOqQ4-1h1;RWeV-!`!jH(fZpAHTb~_-P6%Bk5Gu~{oRui}*q!nVAU=`z{o+Y;&wrG#)AMEwnx;xthcLF?}20PLu;@SjRz?PzV%;08A z8bUbV{KLOFQOZ5>bGqUbT|+;43&u+c!4SsON}6@{s!Tx(&E-E}#w!#*f=C2n0a@Ql`?r&@l z7TblQmpvJY>x|;PYxm*yZ7V6;H(o-ZP~-{G@xErbP|fZ=2`i-@YFo0R)cTYz(gE1C zB>gP3Yoor|yRcAR26FaO-3J9f=j<7lR!LPv%_&6yCK+7rP`gB2j=Z>7y#EQw#(?sUd75pQ?t`piQ#6j_(Y>o-@Tdp-GZGWOk-us-CU{` zR}tbxhgdWC05~~f+qRp1wNxhF%PeAXs4NKDgQTSsX~_@2sx>$+cQ%0=)Myrz>YI8s zfbx~huu9x5L1R=>uTOnkp^1eT=_ad~a!t%f&noZOiNhL2_t@oT!wDO)A6WPB`b_b5 z@|SwbZKswO=f5rN6UvhqCz(C{q4H!}6WY2$3=_Af21ihGTW|4q33_i{&y)1}us?T` zk^UBIo5Y~? zt@BXMo?Z!wB`4%<&A+}E+L|v8jo6wQA}rN07zU(4?5l6%dPe@@19OMIx;ZtXeN}SM zW31Ps@0k)ukP8r?k7Tu^&RF-&Yd+874epDd4J^`@P5mv>+f##AW1@*^dw{ch++Mkc z>ya84k(xsKYkmiL6DziuYDAy0y z`JV3;A*)U$+4N&r@~QJXHeb7=_JJ~V!V*;^25wf<0Wc*7jPLzF1(?ql0y9Ox^q;Sd zE&j7A{v`h|>c7a`$cf3C6C>t&Z$>~#l#0d@kb=kHL1*hWg9#^25F0DNyr?wj%^ zBreA0H?D=UOLpA;5wwpfnhA}NFNu!|l7tgq6M75l7h)2~4$UTqv!X?%%8K8xtb{}C}5Wqj-IWsZV8 z)h`H=MMlvAdd3!C?)4#}lm7vRmT^QftYw_hv9gAV2UbJr}4I^WT{{-)ad3ak#diojF5>Sn8snF+e%OLbR zK%`zezNAX@l^H;cheu>eZ+Yx3A_G+$XqW4U`@QY?OO@R}z@_YbKEjW^^!~FxJpbz- zg6aN-X#sw72g=(apF+Guu)}bmKhvo7Kgip_`X}TO8(_RP|8IeQzC+~V)9a5de%A8` zUCfVnreG`|G+E~5fbouGJegkdv@Y2Z3!c}KA|e3)y3adVr4q45bEN4b*u8+&7&bb#0Smj=8Nxi&YH#5?sSsN)TCw zCPRRe5q@tTB)~jxZ`Ow?LRi6$VI$salGX0$TB)%Ug&IM6e4g1LozP=1#nu(jTDg8W zXGePp0b2}}@yubjs;T0^BaZo zfAxQof7{;Fl{1!HSc45?@@9+y0HFF6znsozxxI^Zy6*Q;z>||{|@AN%%?Cp9)KJ47yD7| zf3oL)89-lw&N`^hmR$+A{QhK&OwGCl9JrkaEE31+4M?utOzbQjyk?_*Ncg-FSne5M zNdn$7s_V5$0QexPjWyIvVhWj3XuS@8J<1e!#8nVa`(}BEG7qN3PyYWH5A2(V6Eq9e zAp4qtlSt96!T0~S1>KIx-Z(6K+bQ6OU*<9ada`sukn#R~20`0{^@T*7lLSoe{t!n<1q(;(4cS@FE)*l%R z;hD8559U57SE_P8SyT`vbX)FT9peEG^`LOi@mv)W&2fQM-8T<_FT}FijXcT{@;Y9Q zc-b~JR86X@+CuVy|5+jEm%l!Y*By$_$Oy}ozi3Cpy#vj>^iZ*7J zya?9Hl&I3yB*9$hmX6`IcyBd=V7+b=F8>;ZxL`}Q#xcvLXubiKJ;EQwG! zoGjtYs!p-8=E+#c#gxn(Hvg8r$Y?mGip|v8I6t+BZM9+@2U9EChi%b%&r)ixLz!ZW zig~JKoN;@yl_xKk>B+IP8YENe?B)bZUS25&N)54=^d^1}6x6!g1vpDeS@wAwCF)6^ zU8id%qa5A(%=Z&^xxS)`<{Gq0>FYG06Bnjec9$r}qOxJpD=oV;Fdi(eOMTqi(ye{G zG)_t^nO{*`pT4o8$tn&GRp4bK_XL@f^$4XJZCLcbt)p0ls>XGnOnD$mMPqv)2H&-= zpMb_Xiua^2kPA=cPzy)lDsM};<`uGvyi-$1bf!#2uc4@RQbC+qpJKY5xyK+AwZ+(} z6W42%tborc1&vG*P-P#b`jNUhjip&P8?72@o^N@%F7;7w%RdkXtBAoCZ5?I?Mbojhguvqs+VOmgSeL%X$Wx!Wu_6Ij;)lqj`_ACr zNQ{Zmz5eOl#^9ZVLFPyI`lsJpg5Rm_rLh(MqzNnimawgcboFHPWltXMYZ7yWuv(o8 zY@?=XKf42XE7mQcPLXVx)xaEbJ*IYv-FP+#;5P2b`cIIwe{?O+I4`)#TNa|KV)M;|3&Vb z6jyy6rD{{g;C&=Oc1cXprVH5@CCCzDJG=$3%6Zc_G+Sz0!PI3=#G3m}W9oE7JN0jY zP44n)v&0|&sJ~(TJ@F^u$QTr+qN~r7gGgkg_RdI2n{4X{O7=*URPq2UHYH0IM@k~Z zMeekqq*}I;TdC8n_#%H63XVS56P3BUtW1aLokiRcENekKynu;8znxk9AR_*g!$N_ zqv#29|AIuYt>rVYYC*ZmNUD?!vLNW4C$5QdwsUqu70&6dUb4ldQ8QXB`xa2u^sBpnNR63sqy{z^GrU-FQ6aylB}fk zW0P3Sc|a(O`LwE}QL8#Io1yWOJ&_8_3J3%*`SpA)<;b1DLX5if`?+Jestedi5t)W{ zsxr+8lIoX;5V#bj?&bAiH$YJnbl}3I>wtvR))*m`Qo$Ne{&{xm`7P(3clKws5^>SP zu$uIQ_HE~UZ`PUg&)mlDY}9t4=buYLif&gm?%K9(Iy*pdV~0dzZjMp!&Q{F0Lg)+4hRn$Nny2Q*Kofg4Rf>F_z9SWh^MeR#Me*?|@Zb2G zt(K?+!zrS3x%FzI1CAHSt*EFL0WcA2APKt!mnRBr)A)nuoJaexCys5nx9BqnZ4&bb zVR~XF5mt#mZGnlaDQd+krh%1w&lK&H*rJy}SJivs9#ywGBqWDKwNA)fTH4+#BDU@q zyYo^A*n9rDt$V~)UAk+ct#^9s@YN*(JA2q^rW4A0!P=J5uuI~833uH{&jcE8#nki2 zB1Jd%X^Utawxr0N%nNr_@Zo0ru%luYS5l0R)O5|Lb)l(p?(@F>KJ8S#qdPJ9_!JP2l%J%2dXk#^7O(8TzpgH?wL&09|jEy9+6ky z<<3Eq-8cMq&t4Y!PIPe{`tCm7x-a@7a|Tp>rixszB76EGq`m@4WSs$qJpt{#LKh+9?|tj1uTrZcnXTV_=oqHaM1D%YYk*&*)R4|wxdu20+SQ?vaH zhN#!QPC|mHpc`*sf>LHsGzZmYg%-vmf#T($t3vx0cL1w@FfVPXKB^{I#g(Q}F*_jqtaW53vAL{rA^< z`n3!x%@hwwzo*={QEKx@8(my>iA3uzHnx#S`_7&xOY?Q)Fq>77_=9UH@xO)=+DHP?KdT}!wd0kR2HxQM zJ}_m;SrvP^w-~o6G*M1yf*p9#v)m6QhE!fE3WMT2b)LsWI`N<%&Mjc!@6?H}uwp~o zoGiM+q=1DSkF~bg4g~kkIrp4dXP$rVbd9c8+|PjuJ6mU-`>a+Br?!r489MRN+q2~R$rE(GWGpaHhGr;BP>)oGPD;jA4%Yg4pRi|-kLw2fBP9{ZKU1*#9 zVD!^%k}O=pHb9dOFM*=Dg_<@0zgUGPZxymD{I+Y*v)oN6!jKYDCYJ;ywF9ZQ|5PtvD9%&`>^b08lyvi$_NxUhpr zrn|H`OMtJrkhxbiea-@;sCcbIe&FM2KVxBbZ2cG`o}nC<*d^KotqpqpWp1L%P1dI?WqVT{n zkQGq&33$0j?|>4(Pd5<6VbAzK0~thN`T-jTO6u5hCDil1;g6VHt7RU`)LA20vgt{p zDX~@e?Zu-+2eG8@*gM}5OvxN)=McmeHSl!eqvB7cFoeie!Yd%M;!?Y@-RiCu`1(4X ztu5Zu_Ci8g1oR&3uJ?GHEi$*xD1s?gb?;f4*`DnwQhz zzk--*#i}z0pwxR$f5=8YBN$iY-lp$Y(LOixN_uBE{$T!$s`RfsNtA{PSYgDwPt61@ zKpHQxeB^_b6;MHy8-XCZ2xJt`Q`%G2wx&-%YX`Q5U2Zp-njt@YDf%vLZbfh^_ZL(> z)l<^Cv(IxrkTec51H#)q?Y20)Ew$U7!rQGRJfwPd3vb`xc4|j&%Py&&p&TxedzO37 zS9na1X=ycANzXc9*RWj!VocBLgJY@Vk$@n?#@O2@35Np)B{x}lQLnzHC$?xCqFPd<2I?{w@_v=Q&)jP}MPybf3N2Y_PNFk6=?g}c^8^k70+|6g z<0IJCi^~Ek2yCGYx9~5B7kh=2OQo8Vte~W?4@?W3k+%{mL|)axFtGKDGTmPPcdT0d z?S1YXauw>+Tk1HKDE(o5`h(ojasZ+aKHLAn*!~ZO^FWfLelM`@`@)ERk9LVXGJ5(n z=%8l|f1RAMQ{z%$1Q1ug3DS4?R&T+$849LsKkE zg@=N`)66dw)eS&41K2LwV%KH&^-uFWJ$e=dt8^MsEr-V}I$p>Ux%wM3PYJ@dxgRsX zTc0^0!Nf*&?ti#xNOy@Racatq>vtdHzU!^Qxkqi@)z8D^=IbUPKp4YR^lOR1aoIJx z@LEAjck=;8pZ!x2`q-S&V~|4_^@TPEA7UjNIwB=^p(^*Aprq(6I=Q4T`N!Fjk|ip+ zFetetEV(Zw-CdB|-6%NvXpWdJ4TjK4k@q{|yCM(k`si?@RP`RzAA+@*Fu1<{{0IbK zTjV|#Xf)FY!S%l6{ue|_+7SG)prjE^SPk|i*F{SjR=){KnvH_%ild)hEoTRDE|;A5~cC|vLmj)RV0_fQgPh9&(x=!Kelmg z*`!LegrsHPAaA}=t2%3*X+1+r+B5O4mxm;$Kh%AjDowH$8josF_v5OlTvg&qs)^Aj z=f_WK;_7@8tv^u{<@&xVcPa`_m$HZSTs*cq`qHw9#KraL_xJGfbRG<3{y0pqj?DjeRFo<{ zV&|`nH&gYdIvUOY&eAm-Uguj%X=IXd1DToOtiO5-gDz_m)IcZEj+X<2nM?g}uPLmK zb*!ea{>4sN9~+7F;#Swj;A&0~)0)+is;sv1%1>;bbS=-Az}1Eb@f z-^ToO3tQd5f+h782i9js%=ykfM8elI#_yWKqk~$$Wl`$!Pijhm?jj5{BeL#$%wC9V zNH9TD0jNz4)D;{g-8gU<$6p0t1)+z&cD2ug7;n2`Xh~6}duOak$;H2puo}7+xiYzl z6gCBNcgwtf6|r!Mef8Y;``u~st;Tc0YO-Su7 zcmBUWR{r&!-$AJUh*vhi9+a!{_BY!^V0bq#nbjX)@O_b;57(zt?vdYk4UbE6l#0>H zh86mt{Q=cr+00l9Mqj3aQX&E4O*8?dZ~Ok(U5>{cgjrhd&9~-LI++q}`Hjd!B~qe# z86Vk~_S-`HLdBQ_^ThF++>$Xy=&8}Tvh{qonxkOOnODa~uh>5l$zO)r?(h24+6q_b zu;Ke+6Ts~8*aLlL)~_!NbHbk@P&5e&Gdk>IXBLsDsq5Lt;3=9BVLT#Tj@58je@1b9h(;L7P=-9CAU;k2w>P1l8^TnBBsm{8iruiV+P6x5w? z-}S&Ojn)m*i`>;g-Bqf^R)DLG32Ng`z9IF6BN?_)kDE6G@mXWyQC)Z0U*oh82qNT4v8(A;44BS`BD*Q-KYNfvD~j2 z`i*^speJeQ#+=)5fWA#dET1;-f(oS#x|?Dlp6f*dFE_v3#@P zZB(7Z?PWggY<~UHYfnFUjxD}V0{IE~`tmq=ZQZh5gucXZajw$Xr$0%&sc(OSV$cI6 z3)Z`838^fonJ0BMSu?2cUV4Z{m8SA*o>>WFubSd9^@$_=YSgcIQY`<>bY4=N=V9M4 z6QZR!ti+v)H03H#l>z!1Tf9`27U0*{)S}M0-x0V#Am5Osk5pmF*rnkQ!&+qw5!5E= z3(5suRUpyTlIW!9;~sfBlw+WjD#^A4P)>i}y26`5#LfZ_tW1G@i7nRY48WU|I3&~= zM%VWw*%8|286UlLqPm41=&C17E=6?(A6DC&`igTk2CdO6*dPudsj$Jd1YNNaMb37t z^(Z@oG@KLH8Ke{J4AO8;+|D5NbK=vKP@oN-xf4!g-O~s4qWLj24%+8KJ=uGLe zCV$j-14og&XtB?ZXObk=fm3aQK~8Q@>4Iq!*Ry586#c&Ri-HyzD^1>=hiOymxY(*h z>EznkyH7qX_CxJ4fME;i#U>|j@&66}za|0{b-(B<5$@R$MK)ZN=K(Bn>4y8uLJ`o? zLV&*eGQPZd022^e^A$uuQ(Acwso!~7Dc7?yBj9J1cY1gJ5ZC)#$7E_tkF+yfcZ=Ow zJN(;6a)c{^^x9n~AJt;>Lyft!&~deBvgX;ogWHHuaKbvfEe(@t7{8;saHh!pRFyrew}@OdDw>*%y_X)CJ$*}Nf`|^Rws`8%F);L*4OFW zg%96Ic5T}~+4a%U+PIu;$#C0FN4ioUv7ZpRYQ3D>U2peHY;R}ZvK*lToJ0FLf}iOP z_lY_vSPS^sG>$ur%q#{DmwpogJvS<#{p9mV2~&Z6r$DhK7qkCI`v8L{4+(>ZY*plI zLYQEnt zb=@D!mRl{Hw?%pUa*IFPOC~orz5De`n%I^dkp@i;h$@Xd%>U*;62bLk+ zr(lp^J5km=(=xKq=NsH|^@&(sDr|ks+hSnq%_iAD+!6f&{8{*K(45UHB`TdN zqjS1$*N;Wa`aBlv_=!E-5L;~dr0fXRe!n)dPiF5b(hPgewphvw)%S~3GJ9jQ4jMDOpxe`-M0}g z+0;gCYSWrJHrCP}5Xtm5satdIUb}fL_e;Azm0N6AHU!>a-KXan(ZSplUbtbWArb!y zB%+@@*nn|I`)jmS8l%v)gRhmO2|gl-C$ecss%Mz(!guO8MrrF?s#85Xx9)E41>OhR zI8!|dXZxgjc4-~z-Hz8%J;TG_&!&1tF!j{^sDHJA-n|L|3BPiuoeH>LMYeX-f0qcV z)SFOqCI$%koq^ffd5`+O5*dIA0hj`xoJ@25Py68-$0z;7Fb zZ7&TXZAhfHK}Tb+y3Say%$PL8vES+rsG2YmTDuhMIMLqoYTTt>G~ym>=tXUWP~4Yx z_LxB1sD!)oh3j3z`Ew&B+&C2@&FyOu3Q>2F`;yAF2bHK{3yz)P-onk}gN3I=J}^&Y zG#>~^=nq@&lyyB(%^Vrj!4cM-9%+t;mX%vnBI^a`n?+OayBNABEC|J&mq>FE6~jDg z&o;}F*ZxLl2@)FYkKt19*-ZIr1VTe;j$ZJAXZjD+2{glR_hTxuy+YkckKEdeBA>=Z zjcRp(b5!mjQ}m6tMYfyxH6#Ee3nZXGzx$u3ktrz|qmxDEeikBLJ)1d?%!pr{tUjLs z3Yb=kd!-s;kUT;sAL=BPdLP7(^Zk~3?A?49)%=)hy6<#1ewES1!2Mb7kh=7nA1SF; zlNyvQ=540rf_)68)2M9w1%gRq3eEv-mBN)%ghxbGi$3My$O6&)!9FugbWM<-T^@)vJ4tE)Ga8~ zM4=8C^#%uxfHoqPSX+uM3WW*qDwxDcLWW@!E!MSat+m>!bp_lL!j4rIs~|4m#vP*q z(#j^}_x(QS+?ji4CP?Ld-_QT^`M-R~y>rif?m5qXp0ji8_MrBKt_{)$p^{hdN5Bw1 z1l6fvLS>wT;WZ}0NbvMNI#T%rE=%_Uf*qXw*8SVXIib@rX)SxoV6zp?fmQZdIpHnY zIJbm~3QZdgMNJ4rrv;s9))0mK(M0|-A}?iO7vt{VHf0;NboY2TCcLF@^`7q2FRb3v zZF)g9rpg_QUuc1a8&L{SZN@M74E+nN=dbELM`03QxUnelqRf7A^mJsOIF+{t@5mFC4i*##HjGX2oZ>{-Ph#x!)heHSr3H8;rcRf+6cfFfxoS{H%Ob zwk?ZO`h%vWe}Ag|eY>B#zW;P&hVPB~SJUEg$Zj%qca^wBcBRC6OkZ)V92R$ngih$h z_^}zicLi0Wc;ghyj6S&K4`!I`^99Bz**@+(Jir;`yw_R=}f z6#*{{&{<>K3CpgT;eZt0hQTBhl;G_Nih@299e_tN%Q568AQhqCsVXtM%mF4f+*uk- z5&BPnS(81uT%{1$C+GH{vIQaDe$4ldJ>thYmBAI9l({`H4el|`caf1mr;z$)eWe>( zK1$Kye5~g$g}pqRVsA$MaljRM!U@>z3uHBc_M)am$+Vmv7cF($i&3k3`V%(uDeOnt z%*Lr3P+fq;tMl#Q8n7MW{XSDzOJ1#jNxWb@v4G+V{+C zY`U)YXW@Aok4awKybwZHp*G2MJ;J)I32d3gJUcoj4D#E{k_I_JieGZ9qj>Vlnj*dW zOPf5DOiKSYZ7QlPgf<3a9OhA-?2{bgZ$e$S%$ZObqdN8VnUP zFdGCgYfTO=FEd|YjFR1k7=N4Q=H@phy>W{~D)D5z6>GEw!=X7q7g+IDY~Y9e#482J>NBQd$HBm$7iokbMbtwBeAVsecdOp)|+fLZ&&Q_E5ata{Gz zftXxhw7}sVVxDnv$18Chx$?@I6@)defKk~|g}c7{UVDtSWsmvDID{TFsU*&sr>eKT*^Soh{~ zL}nE{Dco#bhI#n2N^s7=v|u!MH)hlA_6DzAj{_~Id@>@tX+-g=>6m(4vfCHT#-Wvs z=$}Fd(i&s-U1Efk8jR3HHCV=W)Mn;uUfXQ88(M)K&mniewS}|rW1e5PPnhAPOOj?- z0T`b(ns$qYLy=%G%_7c)Fd7pZjipQ_rdALS@g%&@ZtQ#$(; zz^qcJt2L1M0^@WuTuNDjc}@YWlx-8}bKxY0Rw%psEhayJ8;?6DgbCa32K`R96)EJ- za(2gx-3dPdsgUccz>Y3;&>(gv`~;XH^$S#RR^0*6Fj*lm;AzJPVt0S}M%&$spE+KM z-OZI(mZubUw^6Ojv~kce8(nZA$I$P`XPqZgJ?eTT6#<{>Sf9|CcZgHF_`?( zo;?*3d#fFN84l((tHg}{!li%VG#5P9HSyFMal;ztMafOxd;p%#}ix?I`AS_e! zA(q3fVBQd?MRPuc%z}@pI|OE8P8cJ3a!qeMGamIL2h|Pi9J3ij@V;H&r3V)0aJ-7) z0)}3rn0eH*@|9y%$5^do#xMNHl=nhrjzZSRy=uFoppPf1g3K6>Miw0A%4euTDm*Iw zA_EYQscgj%EYG%m!lpd5&}&NIrP*)Ph<;hwR5yAh*oTcQ)*1E7nTFBjYT#~02bis^ z&0U*h@Fn~SHq^zjv2)c?_gF>*5ziQ~Dc(vfSlui$(EH3$x7=@VepF>kkd?-W*eG<_ z*%|7OA$SD)66s;SnG~gFmvf@=8p#7KIn+@`tO2H_?6 z?WSP62UtULFNS%z4~<^zgChFCj>~c#?696Q5;YO`0mpwH^`br+@NN7jG|CtTw~OC2 zZo{w?n4k`HWwQd|a}WV(Z1CcesAp9t9yHTf`5QCRYjN~^Zc&ZWJfF0)tHHVX)$%>` z(Rxzag)>z*1hTmZWwH?zxyTpwR3j&31XODEYKac<6{64T*)k?VX%{dhvcby1L(6Rx zCjy7wqhDrmz4UAt!2vkJ;xM#n{R(?u(zwLw6w)#|4TEp)|ZFllg-@Yx%#0R z55#bT+>;JT>1+H1)CJb9_?i=Q8v$e0$b%v&zMfSDB+mQlvc(Aa)5^Wl~uM@dK~UK4>@(mdSX_6$@)K5n_om$$o#)y*a!#p zohcgpgw{%ZhrX0ax~`YNvvPT!t0zYHIC-Da75dW(dBru4vFBAi1|ImV&=>op7mSl? z>IxBkQVs2FS?y62cD6Fs73;BPubu6Dovo-Qc0JH#_^er9YgfQ6DRhQ*MmXf7_Ngw^ z{<33ma>U1&ne*FY!k_mI6n$gV&B6<;Up%8>bpGk|eAaVuB_s&Wo&hES#ax*c#A&_? zJDjQ5kN`zdq5#3E7Eou2yA%Qm7t2%epFIk|E3;xA_1hKGZow zt+A<=WM*>(!#j8Hoc)@p3XQvV1N2KO*#--iav;BH3! zvxqweA7#`%PT!}CH5QsU-ck`~EF5#@c&<@oG6<9gkP9t5@&Vb}$xV&${Pzs1!uKh04IIWmj|onw4j9 zkyrT$S>k8n1(;e3iX)zin1V2At|=R?jKiSzfC$r+WWcUEqpe0Vf>xzrQE2r3Lv zrxX#Dv*m>qX%|>|Yg=MU^vPe2GG0_9G@(_ou>8!LPg*$*Yayn#E!>{Hfzc~so!L*2 z@%^`(F`Oi^9Y=6&vLmIY&)b>(J~Xp;7z@U9|F#)y*#&03tnyr6+s;@x<;+)+O#PXW_dLF;p%6D*gqwd#?ENnaB)K-YtI$m%6|2+oF z6HyT-Sv$F~9!}UtrZiA_|1+cI_^xJx!)T)>n5cmEnh~4<*C>nfNHV<1c9INht02DoJlbm&f;G75UZ`^Hlf%HMInJ*v`AY9= zLasj{E3I{&)jCfUr#7Hs-tq|o2dgFl3XTgXJaXL?#2m8R%x@De@t+tw)!a2|&(a`* zGJW$!3E6=V$q9r=p?L!8D704s)LH0C7KTCvJW*(cv(QHcM8==h(!Xf1DObWNWVDDc zN&X)!TZ@26qkQ6I>F8CQVCW?q?v_u$hF>Q>K}PZkGE$c2@=`y?yd9ebbt?{H5p7w@ z_oSy;W?S$sOS4r}%!ukjp1hl-K z#FEq468YoHjHLhF{t|QNFuq~q76>>fgilz3={0Sz1$E$OgO4$0KMZXde01fdj!b|+ zf=z9qe!7i78`=Md*?shH&51U$8=O~ZhdF85H27Gf?j*OL1{)GARIc$WadO&$Un2{s zwJQ;ioNCodNwfn$GXW012>5^Iz^7nDS?g(v1Gjzkx)$sx$@Z&m-AQkZOqv$|%zYoOzjrtqZX9S~b9jE=K+soZ}S%Pk( zRxJ*(ohW*c1dY*6a9MW#p=O{FA}*Mi1pz8cM~gnpL!w|KOfR?X&3qj#olv8Yt~!4)S;q+9!+-8siSGs4ov?p)SvsO5gTC z)TuvhNz_z$`gfud0$^D}AS>`K876sjv#TyKJBo3fE01Rqc|bsznYN-5;ilblWw&iQ zV;tJnk-8huRofN^z9&768ErAi`t@RIQ=07XMQ5XC*9^c zhA6mx&bsnTWXK5{;mv);JZHo)*zvp1aJgB1)9lV4-;|4aCDqv`X` z;g8R2`nY|^Z&=`}n!T-PT;4o4HYcl~wY6pspMX006`)KkOh!(UD8z2|A!Dx*{wcd2 z!h72pw~oLsXQ9UIb0uYFr<{`5Mb$&Acb{j>M&;w-2vqWWSKF zAqVJ(S5`L+SKp(;aem+G%bFI%C8=;J*A9cFj!Vy(cw}B=ULv5#8Z4HOU2;mAXsmA z6ltAdsX<)8!N;z}Tt9RL_H@qJkd-!G4Tj!%fc+I<)&*N|DOCCHzSrS_@|o|i{weGV zoC0rhF%;dwBNzVD0;&7~?nFB}CeMtH^s_u2^umv@A0f{=?jH7-C0O+SkHDM1CJS)q z-yit{>xuXn{Kv&}aT>BOy)DR|1!P;A9Q})wU;6i*(!Re@eZP~4q<()2$_L&P5sjdH z&^FAAj=peXxo~n#F*|~p9_Ez8uFT=}Bq{RCP0zvet9Iwt)cGEWL=tt@bc|sB#ROLQqDt~lfcC@}2sk*}p-Q}qY)=G{tUoq~N!&1ebn2=b*A2hYm&?YFVGgRE~i>OZ4f zaO)I!rgRqcMemk?6vtg)W8>agow1-{QwYQQcOMN$il2R#Rr42ybP$`eHD}EnJt3Ep@E}CL&o8Tg<@v^jb>B43ub>##nQ;mZ}IDn zX7tKD^ej&G1S3r?^RW1}8YnYio3Wtu7u7h9{PUI$*1un*(!(Bxz2z|80W{vfs$Tc- z$uQmnsCb;*clN)_`k%J_5166+560u(6UVZ^IX|W+i~2jm5s?KH!n#HUCu2``U_@tc zHE1y9rhfD>T+hpSgM*Y1g zE`vV6|H27_rV$NF+tkyzt_T`pp7LoND8bupXF1;vy+hbE@^8oCP)Cff{}+Ckr+9|( z7V-Rsx2Pv5H)swuH_~MYA7h^Oc8;?KIn~K}?L=^()ailU_Cxwp{F96;6Sbb1oe)^FI}!C_ z7{|qeswnt6Tie0Gta z{(ha(B>jEpgbd#s^$##!O!tSP|IsenPN(X2$-)}vXqOwl?3INO^R}V*1S^zdJ)VsB z%9?#dw9B7yXEa&Y3vXmbQ$v^jExoW7%&6TDsq3U}NP+Tl z>?+Y5T}_!-vS>!3X^;A{rg)NNjw_sawdz;j(UE?qItx}9F(&N#b-5m zp85hsH-@I@$NTVTMrqHg-m>0X`yKY9!sz~2mdfNa+>uFTk^bU(m4RPBj*$#J*9tFy z_q}g_rh(7?ZiIC}Y9z8o^6!p^U8n&i8#NgS$BVI)<~Z zG5NY*Z95(YbtNW9iHHU?Za0l*=J0Gw(1#^}?XiY0FT0sndmV?3fD3=4{% z3u(iJwhbrhA3wFll!;xrK#ESsYgKZVJEZETr)`kKF*z2Q&Fo?g${=M{T4xn5d+?=I zn5&J}SkNH!K|#?@qXX`7vewF8r+?Slax_v#AqAO7dJM;pR!@)sERfh(_4lgcWk%mn zoPN3p+3+8xH}xbWYVsat>~qqzC_Az9ya zhN@Ev_#~k|`kk|^P&xLMYb|Rs44R7kS0$6}&y11=-7Jf?P2Wq?+pBt8`qXEk$-+B!T@&Db(AQ+P58GqYP{ zU9r?tik&Z#XG)9UTGae|$zXZ)(|B_XQR#Bs=kOS@MUUYDlQ4TjViRRwf(E8g;h~!7 zT!>e|yg6AS<_Y4x_3?#xi@AOuV4@BuHdxu{&56J7;1zAa#V@S8OZUAJcCnfzhEIO& ziU*!TXHUy3wk@USm#IFK{KWrp1_+f3Is2^e-tV}tMv=2Vyp-7=tUf$51HPhxOM6j0 zk+*i))JE-q_9CQfS!CnvrhgRjE2Qlg(Dn;#+xLU#J15d0wE2q2VqMPO4#^1icV1$f z0}AxJTLBRkc$Y5FRi075fFg9QKXmCQ8av*GV18d)KS5go*2I=eq{F}mKFae94P5w$ zK^ZH04KRs$N(5cS08qq=E7oQ9HXGj;E?4-1vNCWS*>a&)U-Uo)W*rBQ$u>qKaD&cc z$Ex0!h!5FRIh%aMA^>ir@hr}Zi=QSzlg&)rUGz=6JOe)=f3)AQFl-7&7uY6uwy9ue zzCc4LzpHgZY1#{eOn(>3q&5Hp8A5zv`8RfMeTcgfWfqEO>=#M@bBJ0f}+@JYTkSeC6?D>+ho#PXx}| z(qGwP0P?`zLov@}oN_1>{OXUWG@i12XcWaaxeeaMukW|_F27-k3EO$?STOz|_6}6s z{Zo#%EJ+hRBvmAblFzg5dxrh;iT;vKj1M)xDo&R^>WZU@<0{%YQzv^E> z;m*23pPUU9d9*>XMF+DN5$PAw^>NxjJvh(_f7IU@@-tg;r{y4aENN2=W!@8qD{pz6jm6Xva*SNwH6uvNJ!RM=8ZT z4-aO2%X}y-O3MmAq)67;J&(F6!+IW0%}1V-iQ@#)Ji(^9%(lJ&Y-CviVAHdX{yplsBA1UhiUp8{MSD4-Im+@qs6mScAI#t9>0 z71<+-->>@72u$h6Y}}0%(cbY7du3gWxz6Z?>3DG@cdLHS@6nS z1|IWxzvu+&cr*Y)L(b8}$#_^B&dJ4oYtz3~sD{cV$mmkmO!GTT6)l5Fd^jQ6V>(L2 zB*>GH>xbovFR?-2^pZ}RQp9PHFp|MF*@uF2oGPrHKY>8jmqr?cku}!mcnC&58qjFH zFTWb&-5DIjJR`_6pk_THjHi6U*crka^q7QGA0q6MQ+W~w=+Zx<{zpo_g_LiBT}R@y zjNynpR~obb1&+R0hzt4Q=P?%5h{3}zF{NhDZm9Y6Dl^>F0o_dPkWhnkBm5TM#(Jz9 zhw1+dI(J2&c)tE5*5eP?AaP;m;bsIiZ`AW>ccKryM5N%$w$4EBMATFI0o)$Akq0;0 zjlA)j5iiZD0JIfizTr%!tgzM&0f)AlHBD7qXVVn#01Wn^?5V?1`rFq_=~zF$=lrR~ zNH{^4+)|6UIm-_eF{SyI5ZPGM)QYgvtl5&a86%e0Fe%(r8293b_2r|&$j{X6R&HEZ3>-Ki&J2~-2|4#W)#$YTiG!fDKCguf;OOH#Rh|*3G%Q> z0!|zw1udI~Lj5?m?*N^XqBL z!C0-_5$v8~Mkd2hq?bb_BFBiGmJ|KQf#!)P|`WC<)89+ zR=Dw}^0>j4$6-Kz};D2#yq_S zsQxD@55;9!d!+*{5t6L#3W{D#D6mz}PspHj&P#);epJ0=wgQ2NY*9B+?cCaoAshRSZhbo_Wb#R(Vv8OHD0Kkvvy#yeh8nVbc7ruA>9_m5>+ z?{U>A9Ext9?nB{@{xMhiMm@EI?&Z#hW@EKlL~0>e*|x*MhD?a3pslWm5Aa-2n~{HD zk}_cYC@Z1`gI(p5S&f6E!ap$7=HC&o3&~@ybD$yo8=z@XoLRpNDEFbLL7w75Ba=Gm zB&ByxA_>Cy^aw|0!oN?+3Vf;bu3mvPIKhN}uWB&Gzi|rebSIl7x8DQIT8r5aC@beo zM_Ix@?+e1eE${&c=U)cOc2q`p*cuW7E3ockhIZ~x{g=vJx62LWe$f8IVQya7 z;TK#<9`pX_Uv{^;B8r|hg6?xh=m`@3idwhjG5RY0bK^hMoxj3=xX+%BqDFuul7Ov& zPW*jYrwThCIp_012oGv|9#=)Bi_R-^)9pp=C zKQwU77{S4L3`mX0Q>EpxH;(|zs|mn=Ex)t+f|B?-4sA-6N4otrKjpBWGm(w8_i3@; zspLw^{2QbGc0hpV6R49FY_C<=GF5YoI7WSAz>NMFt5o1bM{>u~Y2`dy8^>vCKPd8+ zu$gG<#uAn(Q~Vh=Isf7&>a?DvimarAyaMJkq1n0_R)>J)WDLo~M+)6Zbg)}0W=nc8 zFB^j|Jl?%{0}fKbsX81D^Y!Csm@iANgXQ`Y+2JfHCYg`%xuO@iF}wx6=(qLczR@dd zaP~AuGpMqI^}BnC$}-RAt9xNS$|9161zJ@i&)I+3*ZPg&gS+^~=<4|+K8GLvc%@z< z8uN5Gfk8fATc=^BmlABmGgQHiNy5E*ybb4Zz;y+j^$7Yo%qUz{>k15GJ;0=EV*7BO z@-guIznX;0vwy&47OG|IF;tSvJVSse#tTVTn1k=PU`#H)Kc)J7W8VMI|6ySq8c(5o zZ=4nB8*iAA-DYGbOyFcQ{ONXyF_i|#hTPr>ZTQ&z`4ceH)QpUS6Bq}h#gyS+c|{$J zha=0vyR(d14$9T+yXcoUR95z>*?Zj$zbvghx@OM}phwy<8GXslY{#h^LFUxp%S2G({czZNKoBis+D-Rr_#+&^s_(r3&0}s_hT5!#- z^r<|u*Mv8>=XTQ|@E>@Qwal}eH}q+plMS|EOaQ%odvIL+Rfx`8*I=+_*b(d!$;P-S zdxs-K!Ox+2EoWf)^V0^FKkp1=W&IKrpNwUmKqndX+=UnB5I%%DL~>6Ao)AcvJspn& zWTdki^^AGqM*<2xWRanT-&yz1lf7|#aJ#fS2#jWUbQF8qYzf0wX1*;!(}?`8S!KV* z`QF&qxxCz}$F4OfdIt*NpWYjhRfyxK)F{vt(ey!rF} zW^@!{klz%V%Rw&?Uw*z{-_dg|&xLZ2Ugd55MAuf(NA&J_;k4|2`d(<5V?jzx)+d!0 znUR2LMkY)Egkz{DdKMOaq7xwI`2dr#S~mlgff|+ZMP;&$@p-N9VizjUetGX8%JEat zmr{N?yzVG023TX%))MRJQTQF28H|P-@fa*_#EiO_=be+`tRdt+jxlV@d|vBT!8er=zch;# z>2To>f!KevGow?>oT;mHDucbq`H&;4-N^Z5x@KBrDg+1piChRerlAL1KraMAH%u@i zSCpC2b65qiJ+Je=Ns%Q&Wc}=sKeuoiIcD2Kp=+DagTpG*~pz% zS~ue{Adg(8jmMfj)%ZqIKD1M4rjjxf$|W$gRY~cI!CaMsACkh6dzAvamy|0!b_y_- zlz$~s{5plJ$<B`Ra6Js8WECq_9Vt1If(gnAm|RII2NUeC zypnQs*JO%MQr>o?_$B2I^Z?pl1tg^m9i&K!dEWg8tx(yMt8)x40%`>dXB!?`hcM9U zsi!1D4bbZgE!2*U^Q*5+jfb!FqffiCl!Ge)s1AI=)}4>A)48Y>Lj|%5e5QH>&lEHx zpPShqnb{v=CalHzfQ~r)TA;|8F*DItFFv>ONi%W+qyF^rQN~0JWWn79Fn2ateg(>h zIq34sRr#e{~LrNEI$A`&1UNp3|gr2;axJ753AeF%`2wO!p0R1umEn< z1jR!Ypzj)+UvUS4hwuVR`5xnYg_ByMOSJR>!dS!SfWmsXCj{8RqDuuuoqNp^7TRo` z!)08u!$|BEbtn(eolADjhJ=&+iq+=NAd793W#}F#(^QGF+?^=<@d79p@V$+49v&3R z_Lc|^D4;9{YB{BPKg4K8b?!AwSZK2~8w>j5KPNIkSu#qX?8cY$Ch&y=A&coq1Yh1= z_#%P$3Y>_2etsSvG`<4 zHNls6@|SlPzDOXx0%zlk2aT_Q1K%VR@fBbPzJqOi`2zUj)@+^Z!k2H_z!yutlla0j z3ckD(U*28#B7yh{oQ*FYG`<23e3MYbSAZS(&V}fOzkC6Facj1wV{@1!fB7Z@zR}lb|A5p(geF;Pf1C)8j`z)Oy}Y5AQB|kU)9_&ZY+s znjQfMJxM6iBft)NzJ&mU9=-rQxHZfEnn`;2<}m0PX44ZuKBR|t(!;xp9wd++fwSqs zgQiEoK~EBj^a!wno|9~P_yY9chV?mE)1Rb=Zw`Z=TWor&kq_zNo%HbTq6Z12N8oIF z@Sy1taL|*4B0U1^pyvu2D!me4fF9hMt)W5>P@9fgSXG4pAt2@PhQ@f}XWJXDH#{kaSq|cx`&TnjYMR9^BpZ zcojW_OVHy@&_i(2lYkO>2<)Ke=mb4@L3+HPC)-UA-W-m6urii`pcfU6vLD=q9^BpZ z_!K>aOVHy>&_i(2lYkO>2<)KeLOG*~)`=IS2R)0{0BlI)kPqG*4n2OG9>1msccBM& zH$8qu58)E@_!IOHob)81gdPGr=$R&as*)bOAU%H2a}BoAanOS|heJ=mrYE53!CmOV z-AzwG(L=ZdJ%I#01SdTSD4~bI4tgGiD3tx+1?dTZp4+i5-$4)F91cCzHa*pv9^8c< z+}-q4D|!f*pr<-P55Y-K0!rv1u!Ej=APPkfUXY$@(9?udbRG2I&Ee3Km96cEt1GDq zxC=eFyXncwmimWq33{@!?fQq{q$dF-^bpuVPx}NtctLuyvYV|PU%TkRo5P|f$EFA4 zEJ6=X$-K&f(FMYtxgf z>B-gfXC4v!wcEg!$8$FJ$}r|O$u(F3?7J^lne02le#P>LP^JLvgV_I46(`4v5W zw12Q6kdq$&;n5SY=?Q3h0-BycDm?*358#sY1QPTBTcT&~s9fo`9k!fc8%c zJ%LR0U`)chb6(iWuG}MC@9F*ToIr}sGicYfyUplCbb^IX&G(qmo-#`C%b*?_2u3^S zkBFE7%p}kE;zv>G@<2JfIu^c9m@p!0mW|-t?jRU4skgpG1Ei2hP}!7_IV}{jnx&CMU>z zWJWe(OaT3Xcro2;o`P9R_*Q2f`4gUC-E_7I%!a4uw)Io>UHmX zGy30jj+#gypR19t@J`P`_y4(m-fSLJ59#?7$FV%dQ&vkmV3Q?hq~<1_Le1N)fl0EoOeIcXtlew$G8rHvD}C z1dn$hIB5$IMIn=R;BOBAy4>`4lE1A-SlxR^)&0cZsrza7sr#Tmsr!(>$z8KN$(&SN zca|8FvUo9lyq5WSEidHt7v4tRCVJQKMh@Uc7L*v<8hKgC%Q{{*@$xAzU-9xSFRkM* z05clpx>By|{1D-{C< zVtT6SNm{W|``7T)|0!1g3-E`gC=Q1!{?>M?=NzAvLnq)_@HgeNJg?e6mdKBHSf@C? z*8W<5ZyLxTTQaD$znf|Q2xra!-uAlUu5k6ee|`>b9XFVdbIpM|zi({~Em^vIIHe;PX0Et;RqBBr^VE1&yLO;e=(GY;we~srx z)~$NTmwyJkjoK$!Gjql<(tXpe21|wK;3O*Hcbm*XqXv}C0V{bX$b*g8kOKNUR8Y>$ z5TmXKKE%5Vsgsxb-0U*ywqX#GZ>g-8`cvO7*Keu7mr{WptTyT%aka9R#UpQyaL6Ik4A>P zpQGdF-k1zh(sO4S?P#5%)ygQ{O{u2e*Zu(EgM}L-W10PVpp(Aa;ZSfue z93P#YJswA-)K)t3csstAY98L5JKe9#+8;feC0*)(`YQgmg6c4R2+_$l`!9};^?Zjf z2%IcwN1S_$L_$3!Sa)gCi?w#l+SkykcV6BM8^{d~JDI8YCK z0KSqBlI3mFr?Z5Lp#LaQ_SMwvSs(AKGV)Cy06iHYjNE}=$3S5aa=iNuMmA}jM(wqZ z@;{7QbSvTAeW#DJ%g0A0p6!xJhVPT;d>rTO0f3Ax+Kxgtppc!3LJml_ipUq^VO5BK zdVi>(!fgwF9kcYS&_*cVPND`+`72w7pR`BUr@!z7Hx)lZ$_5? z(ph%50Tx4hOP6yAP%AxgOGWh%{~zho>Z&+@0H?)66@i8stMrZEwQRd#)Q-msVFPAM z945=zgrqP z*X4ibpmGaJ&4})dM2l&>Y245_-l))jXfdIh@XZ`;Mt0$c-EI)?TD zYmHadRh|g)Q0*?C^0^sVj+b8NOK<6N%-aOLtPQe(4Ytg}a?rRLyHGW#j>Q*8I=%?K zS^VDARizQ1w4VAz(24gT)`sw6J#B{i>4)L?H-)tw-*H=U$Y6SIHQF0R>zODlD^jb!GQN_~2*M zP!#_F1AT}ZiV{;6H2^;PkNAB<>GCCDG@9RyI9hhZQx_mM1taSa}()AxZMH1|{PJcTh;ulE_NJ!$027U*_#CIQ;hQG*mO2+;W zoQFjDuet5wf=RJCzN;Q`$^#;?Q`(jog^(nUQoH$6TteqKL`N712Q>Eu3Vxshiif^L zEmH*BWoExkA_2;qE1Y{nW)3^j=2; zHS#bc9avAzK&KUp!CXpAhvpPnPI^WkWDr#trtSOH8Z(qy$Z7sX+!G+c<^LvE{+Ds( zKj!~)nf}}hIKds6B>R=1tSZi;E*7x3LM-t{CU_CR5^rPzr7jCbnF*@TiuhP?P;`<{1xKptib;z9fT7ORT2&wzV?hR!86+E|2_R5C;m?h{x|I*)gE>GfX)@I zCY(%I`RJ) zst)+O2rV*T!Ak|ct(Gj7tDDd@^&Pw`>5K3e*G9QMB-d)xtj+kZQ2+jpohJMa%x zX5Zb26NRxQeYe{`g~vb{Z&Fi}oCh)TevMoY4x33zC4H;q%XxBrNUl%IHB-Kc$U^}cmB z;50XIZij%Y!%p+hvfYLm*}+q4i}y@>Sxs%Ez7 zkAfD?X+I~}rxl_NQna8rcZw(49ugfNZ9nId9LT!i(wydKdvrs62YCl6Z}h)V4%d`qyZl27Z?~*>M zSGBzpSirGW`nLXIT>_IrQuNvEz z*$eKt5qaE*J#Iu_yAa^Wjy2(9k~tZvsIP{);PXkh&eK1B|B(Liz|;E2qmBBvxeqfYs|F0N|fW}Wi-cKo33 z(?Vhk)a`XKlo;EB@#{I;9LwhV#A}2?L2dN zV>Q$10pSUe_Fv@mq@hojM)r;9zn;HK8+pBKO|bta{V9G0=QgVfs-GX?uVP+Uv(*bY1L2RORL5qbveMNzh!1O<6OceO*dB^4_6G{{RY@n zO`V6!O)S3Ze3A3TEVycvNck$3T6HaC3=)9mM5rGLa9~WdY+U){m1J!NSv9)akxFR#3#c1Nn_tmJ zPFE4pDq(HaP@zo_t-4HT6GW@70d0}ppyzb_P4mG!;eNB9lw4RCjQw;oB*KSF0=!;P zR*GgMe_dU{>-fpR0bHpA#K&(A_WuyV(vqKklco@_E<|-T>5@iVu6PKStEKRp-!gkqRt+?vg}XkqPX6<*M2o!;^6V=j*^e z>os0vCEifEF1jwetq-IftNIz@jW9{6FVT+mq21bjkw*%e>RE(0tulc@%EwAMl%GuY zC8I#TXFHhR=Pg40=K@4eh#Md`4M0`fiEHZmK}?`PW1T(E=q$)vgq?^`0J_82^ycP; zS&L3oNzywV#=`JKR`MfJJo~Wo7L5{M2TTfn7pJ{{HH*8(RdI*H5fd)Jl!aZ!fME3U zvXbb}(7OL+MM?3936-DdITpeGYf5*0Vj54Z@dvXvV>9QaF|3{Mze3HuAVMh%-V(W+ z;UQkYb~SE!3`7N^f2MOqi74r&o zmTxOxwdeakM4dH^RgdjmG916rpGTC3S965wI!}KR}ImX@KBbG1bZBa<6N_clxC6qQdA1dKBuUlt9Z7HEbH*uNtr&J7U zYNw30$Pe85#*WQAb_wMzI$g?6`%>%?A0b=~>29UV&B$k*bA-u7kuQJd&{gIS{VAk9 z6wn?D(07){4lI9!>n<@-iVv7s<+<}#xU)4>Za?!~gl;+5%|F_y_16i5Edgr1N;sxd z0!;H4VMLAgYjC%V0^uCl0>96#FzhKzE{u})v#2x^g~|7*$_HhFAXUkKpbtHC_WE=2 zW<>AB08aScwZn|y_;?5{qt`2qY+m#;DS-;Aw&xOh(OW0&0eo1xyb)w&qr0Efp;wkS zV1|Jj67Ds3Z6G_Fr5jUzB~g=K!N`)4mtA4TUTnaJRv&nvtFIhmMt*CW(QM4s%2ji- zB4(jA@;&&_b=FlFXLfK5+X1{tx9d_&jfX-GSP62#>IN59-UL=MGOrL5{*pXMvOC3@ zM{z=?Sa)557Eu1sQH%P5V#71^DoW9Tie#_|n;PIHUa3qM^>jZ|pBLrZX})GYqqxo} z$+zevJ3TomLE!t@={`CsodQBU4&K|#oJDa*TKG|y^?iO9Qmh<`;F@}DTMSPbA({@ zDiD9xqOpRM#sKs4Ix8LE`sOp->MWbRK!s`asMWx8>;9M3aaKxQtuCmOTV77G!?FIB z`AtY+C-Q+eV21R3bO5qX4eIMGYuz>aXnDTG5IxSwj9^n%mMTD~inFXI6F^AE%uw60 zWB*DZatr4d06q$D33*3*VmF$8I9NRw2dn4er1eT4b{WH7WZ0AxC&Y4Y3eJPwg}^ZhoT4- z0!xZr<})L7?o<}T{Vv=DB}!w-d*j+*$z?z+J`v8x#*KFuetM>++hj$@qMQ&4l;k{n zxXI|bX7QV$>jtdE-t*(ks0qH5;WamwxCuj+J3=SPt6pH4-;7?2sn1$PQn;mPqfJ41 zeb%j;$a5KAp=PtVmPG?rwmhE#H$ELs&I7Wpe-$+Hutl3j7k!6nKVlkpTy67F1d(Px zqJP&XfKv4D(^uNCpQB`FK5pP=vqV{qM%aa~QU4H>{Cjmqbk;|6`0!^goL$PZu3L&? zL3wP&THt<%-I3jjC7IVGGEbp(_sd}V`HJZ&_r1kqI$9;pzckAiH>2q7!%~2 z1yQSVsMQpx)s3Q7H;P(K#@=@Ym|6za;&#I`pk8l=&X!lFAsZ+T&Rm9jqWYnX;YA5v zr>Gwc_6sw@A;Pg#K~$qwr;TnEM7-Pb7pUN$%n0|YNvP^48`9upYv}0{1Vmu%DYQDpSNRW?wHj79^GjQ$*T2W?yUUP<=UiBx*LCqtVW6#m>ijhs-+D#G%#Efg7WPHxwVJ?1T7jBWRep0m^fr5|b1| z8}ZH94IpD@Xf(mwCuXXbno4w)_Vz)CjX-3<8ZWFtGjq|mb zDFX-VY7F zZ;!3ts)aBL6AuwSj5khisvLXc7-PXaQe`Z-hqt2lDzU}nytOKYx1#q#*b5!OfJ2z3 zM-hlXC03(;vO4pFPS&u#mNhWMH}JOte@m>#7J|$ZGWwHS6@74Bc9#G#Mue$iAh<1P zinX(fHin$TU;r#p<=Eg+9>Of|?=y~kSl*47yTO97a8KCJStUta0#y){xc3sYUiv89qeSiWani$kz zTOS-Tu~gTuUE#K0oJnRgz>NgwiO!=L>c*q8}S2nzz9~54Xm@JiERK`$%X7V>&M;q zx#BEVat}k24_K#?j*F6XxbQ#J`pQFAjlA5&>$Li+fIz1ufKvGR$aAW`a+g0o-IfY9 z>!fiq%vgZN$$~MtMVWLxrglvxryzIDDM91twFyqq3t1P#N=cLSv7#~6- z*7R^J(4F*}9xT{qYp|RD=V#!*vNifdV5XXuokaelY}!*WUil1|n{ofzX({{rk{F#W zekm?fyCwghzolj7u4}AcGy697_dUe+Cw6qpvhEmZ<1cl6xXEWm(i&UWCxB9j{Pbz1 zzakGF&lrUVRpD;s3D8oUvpmLIq~w5fMqC*i(Qf`9BL1R#>n=;dA3E>EzY)Cz){_aK z6#Vlw{_gUx$RK}*{bi_MGTNLJ{qR2$HfJsPJGeDJ&E5{x-=NP5=jWBB(A&#RZwY~3 zO#r3PJCGQlzr#)MjC6W!ePrXD{G>ig`Rm@$^x(XTbT2KM9Bu?oG!oHfdD31;keg@c z(6ZQiD#|;#23b+~RCr~H>l)}iC zCtdz11>XnpZ8}d8qlkeZreJ%paz@fX4pQv_EmiH|hi0RoR=PT&SZ2)LBR$4VuC=&? z$`b@C+10=*@b{tC7^A0={ z-hqeU-ReqIfy3ck%Hdoxm?Ku(Dh-Sc!w=0h!Q`k_39d;McmffqNwJ4<>E*);kWJL? zf3$v+qsWF+Q{9e=@1pj!6{*dBJi_Kp3fWKo4W&jMI`7gSId3{G)=S3H;DsGaJ363% z$;CS&gL&aYMcmuS^@SxGJ=wL&_etYd&x#`C8C3;clgO++n)?rjvW_K%!M12?%z z@MWs@MPG4lK2#qQ9C}=``p7JfTdAs&OK4PU8OrRpzG`%xHU{pLQOnEO-Y7zQ1IzGl zEJ5tn$qN4!INbm(HDfbT7Pfwv!#x}89K8F%`YZjPcU)}CNDC6trL+E60o1MQ6F@0~ z{Pgim`g@4}RLZ|)`S4z2HDEgOa`cvYYIm|wDe1j>MRHs9VPXmCoo+`Cz5E;iVgEHHFg2!j6ciNC+ zmzl|T?cMLfP0&)U8`c-Cd(poGOQ$p()@H5!3q%l1snT5bo$0(KW|gVV75uMWn$VHZ z7(%k|B7j2Sj_|8AAiWlYZ#;*|CR0pFIqAlHrj#+I3@He`nvDAz`!zMVI-yV^ z@b|gZjp&a^K|jSm9-{ux6(76t{};7^ zfBesfi@(zU=FIrdVfKfIzcjm^y|4}Z`#bTcQlWm8Di)R?;Yr3(FYR|-`h2MIYmoYI zd;%Y_MW;3Sih+lQYS|<>J)c7xDzwWgD z{^|_<{qJD{1X%#dx}5(ty_PgUN{Mm(OGOL4%ytDGi#`donoC) zGIs}$^;%_eoCbZ92+2BQJ`wwa7Xk(8XhzfQbqogtvXUd+e3T6cHy86>*41;rqO)CB!X6r_Z*q?j|TxdJ~CI9^g@B3!?npQPzU7!ZR)Ub7O zBn(DvcVW|Vt+QBiD*wl%@}JxHSMT{np9Y4v&FHC^L1fQ+7;I4fSaGfU$IB zJ7R1X{?iUYKmPV*ihclRr+)b9=8q1vp&zja4yqqFy5*&*b+r#i84J-qTv+bq{0%l1 zk3eJbh(m8I3Vxqs#Mj|0AfqMLH-7+ku1^@w;nat@!e>=P9Jy@ml>v6I?Hqn79VP`qu9udXoa zc0==xIp6T=9%o%|)csSXI>%bq8@0C~b-=pXbw+IsewopE!o27`aw~qX^4CZzAS0sp z$PG!O(Cn!u?{JUs&K6K*&Q0mPmNpNm6duJ+C<@iXkHV~vFi@-9z;d_%PX2lwe=nP{ zc?ki>ZdX6i-(mTsYLb3%_U2RHWZKApb@9RQ8@O?w5@C_NL_$6ith?`lT&60yB>ipp zOLSp{OuPrKg*fCxn)^`6hcp;if{@cAL z6sI8PvvWXyNj~uT@9i%cR&4Vph4dHi0_lg}UosNI#X^5ddv^@8ZzG=n{`y*!UFxG- zifsI~e3RoT*0ir|N0>s}2fs(*ZO3!hX7I(1@s!H*)Ijh^)Zm;4g(F>yS7+$erT3N| zMQ(Cnm0}22S)~l(TUQbXp5?-SZv8sM_L#J1ZaLegKZV9UcOI_%B>y`w=9)=<_cHr7 z+93ym#Hq0@}I>(t+vk)7IeS@ zqbBw{LGwB~raNM>V=*9$@mPB}Hjr$hz^AH~^=cg`GQ|M0##C=$|XvGphsr0k-RDCe&_57riF$xgmiot({>7UVZFNA(2>M0oZ z7}P|oD@{Cr0b?*GzZxBqZOryS`wwCYH{woLPVbHB_Ly&h5nE;UZ=k<&G5E9ue~s3d zJD@a|+e+i+*Y~yOp@eDk_rCZny*+Jy;Ore{yZx!%-YHAEhZ|w8VDB7 zU2fv3=)8~RwBZX0J{kc4|{`6;osA*J>Db{$R(~J#&>+}rD({JY5RORV_ z@>=c`hscVXl;r!8^RxTS%0tUCcMUF`u{$B=4d>kS8AwRZ!dAYNS2w;tK;QRmN!Ryw z>H0o8`UCa7-Qnr`D;TY{#rS>t{`8#h)At|1pG}+7`IDQ@pMfa*2l<2C!{g8W7*#z~ z{>+Q~5Af&ZkJ9<$N#{>@l>LMF<2gM3%*1Hzq4H;P!~Xz(?!$?Rsr5d=)Tz|q{ zmI<>n%N>JJ;fquQOY|^;LfD2E`P_;@Sgj*Q-OIpXKqE#D z>SiQ<4YGgL_9TYVi_{>@L@-wry_Y}Hc~JLn+@lQ^ulMrGwD)i~qjQ9%(Yxiwv_}NALAV;dS8iOD89}nKpuvlxjRp7ehH=B8ZLLe0qnIdT2kNIDI}ld>=|N3u z%W^X|N6Cetu?F>9vqi)+U0{>5GC^uf6rCKi@fXIbqL~PNajR4}nG{LRNb?TqKSR1= zd#phzC<_wq$8J{%umB1{l(nOjhHy1LU)rLSSFGV~vV=jh{h>D*yMc=R(!C{zxJw@wx;%&bu|WJ_U7q(>ffv&uK zp=P=H)=`fWT~17fDx;6s6w-&u24J+mhYZmK+OK;wXw1J;?5+We=P zb!2WnJwn6${6;=THJLR_NIkfURx>DzY>>UDT2=_v>eFSl@=4k^#sbj8@mY4N5;V?ci?MG`8T888iH=dO-M3sEVjmu z4f^P8n`;=3#UA|m6F6+-v+lA(H3!#D7p{qFA>T91=zNWM_k8OwJy@osLi6H(gwxVg zhTe2auAC1_awYi{4icgB;_JJN5RBmKA;NMc!XsSBsIs++J8?MwNEZ&Hz}x}r;Out+ z8OR8F&AvSp6Non>N!~pSpK8A|`K~N}1Cp$>Z-SG_!7pcjM64wLZl(YGbD;?}U$P!G zBTwXS<{kR4?w;Yj$yA8*nm;SugDB?avvM>e-e{MrhGAo?*bHwS4lTN$8R4a>;b?<% z^S2|n+H9=`6g+Wg(b6MDUdca)@Jq`CPU_#Er8ZV>TCH6(i<#O_ycGJ-hU4#SfAVAS1- zO?#Lv5f*x%@c}2LzLOI#($x22d`8Rx669qxOf}Z~g?EWB)b|9*6?2eAdSUm{zbdw1 zBi|^<->;FsKYxWFKd6TwpRoT|l(oVI`m9xUjOIYTcC{eQ`RJ6?R^o((=U&VQET%^U zN5w7L04E6-9kjlHAv`*R&CI7}2~`2kAj#vWnT}`0<67|{4xS|R{bvKobn5$D?QiI{ zri<6Y@jbO2qMjcG#L0IdUO=~lw8-SadL7}RI#JS5^g~i~QoLesuoRIK2a}Y1dw+Zu zi$+gh?D>58Mn+5SKOxOw8gJ(xS@VU;6% zJT;u22I>k|fY&)u&&B7_9&Ys3A+EiPpGM%jVxHUv{rPe7xh%+;i6K(YaezmicP%*p z4}tCdwOANTXfM)1NK;%D^pNhe`iUdaTz&f|Nv;->tG&ffzw63s0aAGB3_Pk>*#6V1Ugz<9q|F? z#~AgsC@eiDER->*9@|5#V^@Vnkw!%n7y!OeI={obU>zQ+fJT4xvihi!+ja!NXnVwh zk1{x?1~5|IS|J4g@o|uq-B8XLFJ71d*IH3qGwK=2l0`UbOchM{dZR`XF&*5Jjf>SD zrL{c5BHZ!fnJMuc1njr-mnaURw~CP|^HPDD^->6VEwa&0<`*l;Z&3Bmqv%gT{i6)< z31!%*f0ThMpQGci+Wcw?M2BEys6^JW5?PN;Q&5RqfP9Ru8U{kBV5KhRivUY~IH=b; zXmIgPqpm9pjdr6xsJg6HIln~pH8-DL5WYNe29=&e2ohDyS8#anSwHEU!Mj|hovU&n z(DDheC}%|?FVZTK4)`p+BAK|B_@W~D2tM76+7-!I4=nubhT8lhd7*WpW(ieA z>L*)tje?spZGO8#KWkRQDXDnu)zioh73%ECj}Qe#J%DnLATZS zUKrsXabroXd0L8^s~NAtYbu^9I$1vrlcH7qB;QE=^j)uXA=KTfDgQBD91pB>3VL1& zsr1co&3`(IltJ5Gx=-ckCDRc=&DC=9Mtl6dNXKgHjJl^JoB3L9Fr}EMqDE&iU9!-1 zR8iD39p9mjnnKY`&~;QQXRkdq$yq^BI6F%krJA#aDx1E{23}ICI#C;qBj!V{hr-Eg z>p4ys{6I>y{=(mLY%R0y#$zH(5Ijit@nUuoQ>eBT>aE8>Bl;WYsuuW&9*x&aeQDI5 zMJP5HJp2*!Z1riyJ8-wHyWmWK?Ta4!1|@ZtU3sJpW(kD_tNkq=<}Yj)DMGDa+^FBY z0L`+FT%W9jW&Nbas9KF$(oiwzfso_kI@Z-JrEX)MMX}5S>L|Cw>9eV4HP#c{=qbt2l7}5 z?tZz0+eP4Z0Nlo|zXKYr+c8B?vT4~wQK*;D;7hYIP72T-`ydRd>+CgpvLt&<(X1OKJx_uo4Vn z^f8l)PnBbD2bkh##+VmGiW@J>QNi1S@=Oot7X&r?JNViNpS$X^w7r3to*PQ(3D3lwwfiBrl<<|yTbYmJ{ z$yOpY?G4*}Iw%W@m+R zhhlrIK<&4oBaD|m$(oACmAQf1){wz3vW@VM_;Gm4{?f?e$cF7D#xosb;dcR)?h_{4GxQQen7(gI^K#v0oC=x)J-*Zk?_f#dV-~ImH z_m7v4rss55J$>q_Q>RWMS9xf57w||X87hrj?i&oRvXLgaGayo&J;d9 zgLLx&&n?Cbbv71kZ!_k!;MyU5)&%Rmqzm-@EqcwBGX~)sHMowWb`PUb?5h@Of+i*01d?j zAvKbWoD^?#!QAsjhxHxnwgI?!vkfGtfAb z60Co=qk4M)aa{mkM^t_(sXSJxmI_U!E9&dT+LmUtr4#W5-B9GNkx|gp3f+UUosD0v z{r6^3K6p`zJ>c27qH<_387@o;97aQ=7DDbbjVpBz1%F@~9uvJTzS2U05xVM%3WFU` zlJ(}{-(m>vM{+7Wu}3|m%&?j05gvkGB#kmrS=RM( zH~@!6!5IQj>S4QZ8hV@p9Y>P~9#342wti_6mP=5j9jN3*sNiB5+J*5IO6noZAbPjw zI6`JnbhrFn=%O?;j4v66AI5IaTPI%yf8;TPh@on?C6YDcMm;)&dS;(Tq3nbXNtK&Q z@d6h;`3Vm0kVLG#rlXA^nFhgSO^@vOT2bGz%H6YDKu<)D3)fW4%9xX zgOZ^;rWb#M*QbTLEjSnb<{Er8HaIAS0?=S1@7GEFs%aI_T_V&{p(AGV!$>S<^XUtE z%#N9ay~2YlBCFX?)C%poAs_lxDCjU{HQa@o^COiSfwpL$*Ao9)e?)jDm;OaLEaDo2 zT~lmG5eoI9G>#Ixx`cX0vZRiijLIL$2AAfEXg_eS}ptC3p{p38p77 z&{p_kBFMz&LsMu9X^R;_jgz8y$V1*w)_OMA`peCtA(3LD*5OO=5M#n!c$;Bt zDeq#o1GQapDk`+=sV0SDs64b9(j9n!K^6ODdt@D9XVB3JWCRVDQ<0D!FsNo;K21+S zzypAyZz1rVP3r_Zk+bOZ^KbO6q?_)eq-puvMfZUV8BX)WGN z+<^c{N!Bh%==x8l#4sc1JyRNe3VqO+nZ-6K-Lt}629oR6f}TF3WZDB zna`Pr4r8Eps1eU0Yqw(uHfCf3b|DBSo|0dYfL*0e$)t`PTh!uKxrc~pnn?y0=)SE3 zP)j->vYiCNW5#rN{}?u|9(yhJYcgwhgY-+TAg*(e_6iscz0!e(#jFeM*Q58PvLGar z6ST#o?I^Mb6YabZ?{@M>a6aG9gg$$K53v#8^-ay9HGa!(g)O6+A3(XmZHhJNJINw5 z6r#ty-LYf**ptoLrgpqL4fm>)o*!Zd;ZDwV>KhuNxb{VB3ho|#Qf*8v<4_+jR)zG1ydmblr~vZ&U)BW79}v^11~Q#+@`<03=jzCYm0~^EPq-@7 z4Y$ta#?wLJ*^Lir5+3RzH8D6Ph0pB(J= zFWe*4EmPp*TZ!I@bkiVS(XDgJH9B%X>v7HP) zot-sabUK~(BRM^Vc3)2^z#wTTO!ss-<{x}|8et3$B_BPDvM(>~L{}-~NQjK*DmjXs zy}=v&VHH*on!$Z$aI07fg{nxST3`o^y|2*~`h#6FeCUm7BkUyWwOPu$r900FP&pf;FVMcJ!L7bv4Nit|65}9j{2pBfqkO*dL}W*6|EN+JIt*=(4v-Ay+`=JTVOjY9NTGSKV^sx_dwAH z$mR1N@8CzsmEitAcM?XL1pJgm*2jQ~E^J|cWxZPDhZjjh`K?zC5oF8E<0$hIy1j0{ zW&QO0&Nwd>v3`C^tfsPN0>^R!2X9DqWZf=1dMp;*ZKVCgHSg9Y(|4ohV)2S2*ZI8wDEL~&BQo<_99v}>l2D-%9VgTv2y+3a9 zWyw3y#n$AT!T)^_9raq2|4zO9CRwd`9%udhQ!F+gTGWsO5`2VbkUZrG{VhojE~G+q z_0-z|uR{`RWOX^hBpodRNkK;ejUQv`bHIWQnPdZLWCLk*&pdW|%n=R$^UxN%_NN~c zO}s^uB?16h8KUGva5L5(!x#@rfft9#ZT`6ti>D^6HiPI2x*Q%RUrxih^$17apyKDk<)qFM0rNMlNx>2(0q~Q<@(ugEB;(^w%^#mAZa^q)3ZN4 z9tnF#@ggYF(!K@v@%DZE2%KhNpBa9BK?dR9EGyuFiWJv|>3$!T~OdKf;2$8}U~=&sQ7 z2n8t~j(tltl}$BSM8!s1^HVoXBmBxWlP8Mq3(qm0L@(2OICU=@N??66<;paBA&$Lh z#|esX%RDnEA~O)$?eGm`i}YCgvg-Jpq!`U()-YHbeUmg{CHVe%SVm%(32Pju@$TjT zfK~B&C>key?35E;1=w6X8hfJl`eno#MA^7lvP6@Him{nzEzO+b^X_D(x%H)ZRPWq8 zxG~ZJc8K}W3Q{_hT*|s{jCkoRt{$UKlZJTF1&Bdkdz6}~T~cZs*7toxAS!H)l4jaw z5;+H%=aW4|enYbrzYg#()NEuaeqp0Clx=1P(lBM9Pp&i&W$c(i!%1p-@shz(UgzX9 zwUwA^luDpHEkVYBU*L!-)8JTR7=aCE*Y8ZZD9f&2>&~6riC>PTgOTBILfmRKe_~7} zZ;kevNB%p9{C5tiZDM?gf${Q550Mr{SmQG3F5Vui2x?siB}-s{7;vFV(E_QA#qfaT3{k-=}2f_2`?|w8;K8XFpkH z|BYNs(ED$Z{jb+5*=aJ``j^bkoP%y}f6DItHWhb=yL^MQCufW7PyJ2Fj@6_I)`*tb zui@;oW%e6I_I#23^36*2^C){-%j{bV>Fzhn>}^H%H8_c~Umj4h^IHJh8bsM0<@a&+ zQ)Tw|xtf!Ai0r!`YnlC}mf2tA?3++u=x*;uRm>Jyr@o?O?MaH?+cN9PoOO=K3LcY_ zaiY%qRyWx{3#&l?d~g^FgZ{bKc=XR(aN-iW2TpXQ6HnvB#qva3oZzoL;oNGO>!)!z zw~t&=xPMfh+eGK+5fsi%ljoMwxvRvvmvPRjrV|K>DA7xF;uSjaCQexQ55upM@k?~V zT6_L)zR!2w8)8JwwUCW%6Jf-*XGCig-!CuQClY}gp69fqE^99yuKvOI8cN|y;F>5o z#e&pO;7~BvB=*+JcD`T!ZT$P?_;xvM%Jn-hNl-5lcQw`v?@`ahb3+V`sh;S3>n3O= zzh4do;FZqDQ$+mF?G(MaF?})FCR|dAQH=*78}TT1?3<~0M%m-^@}v8V04-YxZmEgl z#k@^eknA-AwDo21P+(U(vtfrn?Cm)wHDL&Doa(_R1$(p&>~3e~HXGCVlV@~;sUf5{ zsvq{`&a2|4mk-dQolD8MV!47}YC+3lG(&FPpNRm}|e#LDKlsl)x?G_psV* z;qLC}WULB#YgnK$wSw|CZ?imjX+Nl;9&Bw zoGU3daB+p%FOyiv*xiKI{Ei|*R)8H2K&?d9?=m0Z)t?Ajo?mMfVJT*LD31Zvk zBjVvI>61ngT&C$+A%g1MjU}gnqaxe-iUoUAt^mFe1dJjIwTdaq5~nDd9*YL2Hm;=d_xzs11z&MI7!Dhqtg!Bl0ZzI+y;-m@1!FWE0<+#CIm~oyUCdC3Ktb z_LA=$jqi^*$sh4e4=P&nJ@FCA^{bQ}1x+)F&pJG@Fl(DZb3IQiV*pDruk{HY;XoPHtEitV6J1CtQXr4Uo95M`E$~5&HNn=VC=51ScR{dj`&>V*sNGLTu zTb{ZfN(5_bn@;U<*W2qc1Q zm|kaU=VQIt>NC0(-r`q;c)MSuzUGq4aAkifUs;kL+=t);Q|c%Ca%(5?xexMdtV9GM zHNHSIA{1Ji=WA&4hm*_ylA18osP3ACKZBDz{_rh$umRsvi4@qq^0v;NAvtTuCV#=k z=s6I<3WL~?oW?Ofnt|hOO7{B01Kap=YsOxOw1Yde$q&?U6jIiXGelP*RojxKNY$27 z_2N`*omB6NRIky%9*tGTIabMfX7E9A7%2`T#G!}}f=Jaq|9|uM+MNF*{_;jKe>Ws~ zKwx5$D}Rex@wf5+K7VO({w`U^{Ph-xv&G>IaY*HZ;7{wX%8Ec|8u?B@sNb=~3hI%ZG@V)ZzIj1=At%b?KL5fUY{ei=yP zofh+by#7t`)wo{{-*4QRFjGvtbov)nOrq!Y8Fc47V;0|8Iz#x=koWwNxOphK8y~uz zOb0kfbYwj7fpIoJA0>^_?DvkP2fPa!{SWKk%I*grnZ!pLk4MC}`255UzLkcC3Xi>P z;$_rz!jaRH;ZWCFGuSl)t}PoHBw0P-7nlyL^IC$bYVrL%F+3!Z%OgaqAs-4&(5E9> z%-7TRG~DXP=4;FIlCNS>Q-Uw2riQ6CHO5x0MNM4=HGcPd8s#vC-_s#4(402;ys&vF za5!@M-{%?g`i&Wxdvwg8!N$D7W7>=yoV#e; zR%4!jOyWp%Q>9&a?pDwu{ZZD@k+e*~0&Eb=5Jn!_KN3^AGi#z7WSL|-T>^SW=15qy zG4*dymleX(T1@U@QDiMP<(@dn46Zh__WSVR{@TL>%-YBRzo*u0IP4E6_VML5jvYG; z-+H{#nAi2Hk@>j`$92Td+pZ#o8_QDgw|>k#GhEWg;|n%N-x-J!T=lyp7@Sp)B9xq_ zD!)Zn*V@{^PNTV=4-G8+VSgq0o;;q5Mw6fl)x(MEP`?jBbicu&!5=0P%{xN=4{4p5 zJITcHddcyj{et1|bR~7kxi98a6j~qtLt1Ob{*`GB-SBwQm7&`nPrNeJ@$vlJ4dc9n zb2pV4gL7A^wB`qnxN18%Yb72_m-HZe$Uk&ID7#r#&k74FUtP_NPG(7CRP(>a)Oxa8 zxA!0DE2#Jn6R3#qpWw%4;jtJxY%v0}C{Os3Ta9@oV}8TTcwX+INrjj-L2p`^hPe?$ zYHKE)5K7J6I+0qXx`TrmgcBu4MNTsXwwwNWCp)A4{bDSkBB(Dk&B$QU-lAsA$sIsa^KcR zh{|0G10JD5A-K$=#bA@Lo;W|Z(S^v4pod3La5@4J&BqOqwT-@JwGrfmRxwB4Tmg=@ zYN0pViSBGE!a?_iDV;zgm6G}#>T76lmWP2|pBQ--3=g*&;WvI4j34OxsV&CVpdm2>G>O^>d3W5- z0m3(Y=(d>-Wb2~O#%H)netHsXLoROgcj*k0QPzl>(zX)zS?^HO1J zes}R2M;g8Ue_n!kRx#~nvVYVwzX<4ko*_vLCpRCIkLzH!g~Gjsdp@b*5=U0Cin|tt zq-P*$I<8;Ao#Td^+Zs1X#eG!bep00A+f~6e-EenYs`9}4zMrb_aF)cqPRIS`N}^Wq zuT40i&Wf|s88Y{dXuK_FN(gi-Ef!pRrMvCw-Qv`u@bjJ$NgTx&2z)us^KyZ zub-muaGJ#JspHO6aIK$RcnG$}EmUzA9TPlM->C60Sizm)hI?^q+~$)NeeajJ!*tx= zlzPi?!`*y|$}jUUN5wr!;#$Ksecx7an+~|}Fs(JNsp5Y6o8V!Jj{AUuTjhqk;9^x@ zwugP)6dwL8aZlB8{R(cj8}0@TmwA}2;+`mRKe|EV;kP02cG0-sg@-_E+&mTcqoaZc zzmEHjf?Mu}+q*Tcg}3l%2?P7HTP5z!>otAfR&X=jaBsb+6~8l7+_n;Tl8$?~f?L1O zg@?%+F7unC;=Xl6@NkNbd%l7@-VHaaHEz>M3J=#y-1o23c=&E`yx!8>aM$)xd0>63 zRNSM7g}y!=x1XZ#vY%Xd_$^z-W&6!mabK3W+ppF1?W*98cEdfVwZ4sA6dtaYxR2_% zixnPH-EbQ;eVK=H75C?6!9!Oaw?x6M`O$@kM_c1&s<{7@xbGBdJY*=iqug+NwZ^UQ ztne^M;$Eraem^K~4=HZAt1ndRjd>Wa;zkb%9<~nC^qr~T&fn|8!^5p{(^TANB<^?} z*RS9fyWyVI8h2TW!ow93x3i9WzJi3ho>?+_9~3lT_SCCGLi+HGRLykK38)hTF3>?)%9K4`)f- zJ2hMyWd^gOq>rD*58dW-zW9*jNzF99 z6x#MuRhj*>pl<0^S`qJLND+$P!;qLGz>p-*9+J$`iiqjh1Z!1CrHFYFw^+yRtl%cQ z;V!;YHKA^VTdLw(2ZX+deVV?tx$!EQYsF2-(KoEQDopezSUpwT84~wt9rqyx_jWhj zMlA$QBHSe>Dm>&!-1BtYbOqPzhI_8o)#8a?g7u(^+q7Tsu-MdiXvm54@Xl@*9YWBc(_IU?|hir-a>rhSKJ__!!T`u~5tPT0v6A$;OxQ+V+ z4^Qg2+b)aq@QNF5=seZVSl?t7w_M_8>bOrSxCL&wPiS_=^)|P?!b7ISt-Vs?Az#5g zxYLD)x!TZ-dAME0t^Y~zaEp$6_|iBJFSy}mYN0LLuUEw#FL8e!qUrmFf;+?w_d?Ac zxV^oTr0|d?ai{CJH!HY%zjxuGujbE~-{C6mvL6Kxy>#663hpd7+)S;#F%QSuDf*6< zxL*v`c=)7moZtR#xV^Jl+1V>9ZmPt+NymLi!QHvTg@;S8S8-3Gc2S_>*6bBL>>H%% zo37x7-Eb$KtKxFK9XvtdVU)xT>bMP;#ChoJhI`~16_+>7dqKrbk+^5-xKAm#o4330 zuvX)j^&O((&fg<=_;jGgL%xDr>4v+cm#Q!KZ+pE855*Gq1|4_*#c>{byW!Sr_RDrQ zOT|r+xO?+8ecw=U*KKp*p&?V%mwD)~;=UghJWSPbZ&q+8y5UZ4jk_~Z;h{+4o}uG* zR&aZ{;U3b4Q0&jbDsFq)2p+E0aUW7}OWknO zw2+zWZF5_NheC<_!vIa+J_>G6H{2+xAlqhuw<(X51Tc=-huo> zZxwfr#O`s<<;G?uY#}9+qDi=izoY++ap4zq2Gk z;UP!jUajLktl)axaGyC_#pQZ?P{nQ9C3yJ$3QgZE1^1orTzIHXS8+M+>!#vXN!*D# z?uHBEJPdckE!5gE+r#HE8mGyr(rk%)vW^>6aF1r!t#RKurtpv^ zao^6-c=$lU-Mhhshi0u^u$>K8ahL57JPgrsrzp6y+;BhZuhttq`?QYzrsz9b;%>Q2 z)3=X;+usd$h-Sas&%dJLrb^s#I_|df;{5Jxbm5`yT2)`3Cn!*HYqkp>Qgqy>6x^^I zZq9HO_hjPX;8BH#Q4;r!OEn(y72LjVxTY3Qa=pEv;-*O4fjaKtbK^X0{?>(u+%r^t zMf|Jc&fg|@*wk0k_YDQN(hc`g&3?JP?LDIKP%LpvbljU2+}>`urq+&`hgm9alEh8c zaoa1n>(;yQ(0rE41LO8rao=weJiK~|#=|FBaegPd;WlXY%l+og!wL^Y5_f=(`xgbb zmmBWT(^P%A9}26u2@<#QVol%f3ht_PE<9Y=Q^jR_=&RzszE$w>kdC`NGtNV)8}5^u z{c=0rjCU=Z{;g2rcF=LBD7Zb{aGyR!)tCFBN)@+xi_rJwi!>hkD7Z_$ap7T4cNLfU z?XBX@k+}VI+->K?d3ewbcb!&m%r-$)U+cnym8SB*?V^{8J6qzm({T@<9p~X5H{98+aaaAS@Q^2Q=VWUpQ_iu8td2aObXZ;UVi(6_@L+r;0m6;;y++(>GVaz1Tdm$0cgaD8 zha8D}zmB`VSDat38*ZNF*SX#vRB@X&2_6!4+!qzxcN$!HsMq{Dx8rUqZk5D+;R20^ zYZct#Zn()>yWsxf^IsGmvL)`NI<7~-Jy!3c@2y&Y!T$Fi6}NGt;9+%dP2UeP;{3ki zhI_we53Fypid!ymN9nkCD!2u1xDRXN<7A2-=KiekkSTFJI&QjxdvLW257%k^5Wi1< zyNX-CLGbX8^EDnC&WiK!f*bC7ZM@0)dR5%<68B;qcZz~L#0~d(ZRrTdlkXf*cu14D zU*YX~W!%z7!QK0{3lEPDQrj`l6AV{zmo*9=?$L3#of+q0mK(0Oi;ByB=h%Kl-_a8H z__>Q+8 zNhzwn+#et07vkkOc9g_jo~7~dhJxGI4Y$44&vScwLB&mxxOeHeH!HZCzjEPWzSdtb z?hqAs{(8Z~(M(O>&I)d&8}5Q0Di6%>-k%hED3-W0b=>7?aejNd;f~YB$0w41n5E(- zN!;E#?!yZ1x|J?GTx+QMviXVuZo)>ahuQ9^nFpmUA4l6haRnQ`>MFFe-H!-m=gD3hNf?41-F|U?o(QOV|^#8xck-!9-h!~ zYkS6d_J@g@^W9JLdM*Q^lPjaSxoS={rTiz1nmjN5S>F;U3i5G5hrgRotd}!9#|Qo2B5sQ|H3NncBF8c*vHxH|n_0DY(a$xafPk)-Kq7?@@6ZR|_6~O4IcH zi-P-#8*ai$YQ3>POIC5qC2p0D+g-seaKqi7s^YT!&b1UCG9_-hjvF~O&hNp+E+Mw@xLv%n zTj3#1;_f+J)3>{VyLXWb55u~uxNK*`RorE(1P_%u?(*(&erLJi-lX+!TyMvADf*6< zxTov5K?S$J8?I0DJKT<6QE^ix?mT>~N*M>_D!4lry717f)f?j$sJJy>2_6b{+(>Gi zhp-#&Yprn)?o@afC2=D?G<}~_aQnL9R%`8o+wlu3Zi>WxOvm*pxSMNTc<{E?cZiBR zf2H8zG#$6Qf?Mf^+ePb#*iY{LUg4ow;(mOZ#>4Vc;{5h@!@cc9)qc6&W~sPI61PCd zeOSR=SL4FNgW5QY+eLpB_x%-uhh3*?`erG(6Wwr6*5(PAhn+hV9*QLHWF2?I$#EWf zx#4bWr}DslC#>QoNZeE%H>lvQ`qG7m4join=C`kk`}%Uh!w20p9jQa9WrtsRT_ zmtT#O@lK({y-LT8bc^%Q(+zj)397!#L#2w_yiDl3BURJ)IR$sg7cM*$Ywd#d?XBX@ zk+>6dT%Usbpc`&VYut6%Jk^;8HzjU29rtk8I1k<2aHq9ZdEowHqKdn3so>$=Q#2ml zP;fv0+=YirTI2Roac4{1p*rr(3hq5_xV^oqzFcpsniL-LByJNPp(%d7y@H$UhPx@T z6>h1DYt;!J9@cSdPm1$9_cIqBf~|3Ts<<;GZWkT*AqDq#H{89kWURfmU-{&5_mZs& z4>=O|Ej*%Bct}@py>7TZtzB?Ceo)12S|WHDtm8IxiSzKzr!G7cYjFv;i*71zmBihQ zsWnC4DGKgzH{3azJ+Qu?Z&7&2mbhg)ZXX5r*a8=Q>yuP_V14gVaT^y49t<5f(mBq< zD{i=bkE!*>^BT!2Zn?yL{UnWt7ZuzBH{9>FaSQkJb2lqIWJ=t89rtDh_uwZkJS;w{ z>f46nUlq50k>Ft?mR2hD)>*-Q!43BkZ5;^D(|T3h@e=ng4VOMk7WAHf6eNeeLl{@S zs(@js@~XnQuTatH3p04F7hjl3KHQ$_MZBtz%=zN4DulGImP7nUzEh~%yHFHy8AjVm z5j%B=SM`GVaq94HJ$)P^+;g=S8gLhWriwdD;@+v_j#O~(a>IR9s}gSdD>fuaTp;UvpNhM=M(}Wlj$5YSzFF! zR(|Ahmx{aYOTh!45UKo5Rd8Q&!`-IY8M~?uD(*yyyAZRIO1<5o;9lj1`(!88WpjJ` zuuR`%~3dwX+{Sa^c~j5h}l!|4Oi~Q*oDkE_gt= zt>UV7_Ou)B3+Jo2h$|ATBkL7?AC$O7I<9JGm%HJft_>x5s`Molx0}S>4_Bwu+og&< zZ2!=OhX&2B!}t@dt5n?2KNCDWuH)`%7jJKmyWys5Q!LyM9pG2)cX{ zksIzpEkt6!{tp#5S>k>MSEulBrGmTh0~a33wW&PTcc6+p_fx^ca2>akg8P^o?qn^L zVSa!3MzM$6CGL-K`HH?@oDk>tTsPd0wJBKklTWL-UWq$R$E{Xy*Szn-!%FSZFy=cF ztjks0cNPd9(sbN11@{p*+)C}y8uPFnduu!W+i;2d38G$whqD#jGu?30j;J9Whs=+w zxW_&b`d+8wuJ^|IUGbg^4r?ctR&d9-;l8C!5pp};xJKcj zK;l;DxOXVHr@G-j_KV5`4}Bj~aSzTHJoMCYuTgLpzU#unHClV){_R{9_XUYtjaw=_ z{8hod&kc9Iz zH3kkC9N@cC$16UIVnQEphkblA>>C1-HK&?hhI+^YDs_ zn<{Z1)^N!lg5Hn!z({U-Hf|*Nl3ntMHpGxHl9g}jM)K8uwGbTH=cqS(3$xYqeW+tF zAEgjo8B&a##xtZa5_~;X7|E2MR9yB@O{)}gu9vva>bQ$N@ybkdaA|KC=#PA0HKI{UrW|53LEYzsUM0nKj!wpRPaZT<=L@k|TB^@kMOLA#%s? zk;KU5j<}D+wfKslxVnwR2OMz?M11>s#}7iw9IKYDN9F#oru89-;~nv367j(j2{x0& zH}Ro&fn7=BAV(}C@jKeXhQ6?7-AiJrBNma^$q{`dzSe9fzMRB7M?8W|IcH*B%?C*$8B(A4jNLi}}6949i3rS3J#E(dP@fSPse@MLC5oeLO z_GkO*R1zO>#Bn5g9dQ(i|2kkNzL~_!9Pug=>-XDNuORU+j(9$aZ5**DiT~VZC+QqS9jh#19eLKvbp7eQcJ7%Z zp5cg#2=#e)glrDj_4z?ha+B2;@ltX#OINCjU)CTad*VNnoMH3 zBOXtI*xeC-BJo4ZPTWM|)sEOe;`h7ls|!h-=!hSYc(Nn@hs5`G*@hQwq?TtwolO?KjsNgUvauaMZd)xP>Hi4QsAG!i>F;&>8Y-eM>I z3yJ+4@fH%-ZMLsoP2yi2u^)-;9I-cvbH1|^pH5<~BN`;G*<@c$An|@j+}{aeq9bl6 z@r8|c;WGU;T)n}*I+w&zj`%8x9!LB;iT`M{6IYRVu_HcA;#c3=SMMY79!I>D z#N+Gjt9}yy?uh+K%yz^JNL;?oPJ9N5cR6ATiATS&uX;$F>4*oCA@+8}9VFJRwG)3s z;s{4vLSpk8`)W0bPdVaiB%bStvq@akU?&cec$*_WLgK-C`|AB9KH-SBk$8?H7LZu8 z+D`l@5^r|I3rRfiwS6^>#E>I)CNaYi+mQJADm(Gd9U*llZ|BJMmHyuX4osB<@&j zUwwnb36A&=61zEKh{Sgn*@-8RIMfjzB(Z6sef16!A9loHBzAGcJQClkwG;Otaj+wv zN#f=j`|3#~mN{Y~iH0K{>;UogFYUy;NX&P{Z%N$vg?)7yiDMn{6B0W*;+rJC^0}S( zpCtat5vP;*?PvDYi6oA8#J`f*-VsNT_|m6#;zAOyaKwBPzgb{ky@wvoJF%C<97p`MJ;a9j_SM}a-sgyoB(`%~7m3v$*onU-ahM}6Bhh-_zWND?QylS45>Iu+f0Fpodv@aK zB>Ek3B8fZSwXgn_#7T}gg2YoCv5>^~-?0*=Hj+5r5tozL*%23z_~sjS;z*_+mAN zdEZBA`KJ)zB>!&3cPkW37O?ZNu z{F5VjAZ>9Z>{*ihjU#o0RO3h|LHfjzx&u(>C39Tx8XF(kr8NaH zyf?mOslW5A*ib)Gk894hlnqMFMo-@1m51+X9gbv zzwaUXGJBo(ZCvwM9f48jorB-ls2ceK*tF0(^xg4T^cDWXIn^-gu%q!3v`oRGkFFTU zr(%wv$0EM|3Diz7Jha(h63%uMXXVGyanSV}3jHvcxA$kEVH3XIUV{hgm=S}3X)@sO zXaD%w(Uyrc;~<}<=TZ67pkd}BYdC56ax46N;HMG3*bhg+Cs+WXZpGcKmvhCQ$F%Vc zp3>VNfVYlr0`eP90W|%MsV||lxCiv4UC-?O;b_0IlDl~mUAgH4?c$KzIPPy`LBx=m zg?(neHV@&${)e%#L9OX&5ECL@=2Y{rhLJD|#Aj6ab!RdIog!m-glEY+>(f zn`vT(E@1+tkS1nGd-)Ok+aKiJ2`)t;BKa_zuc*){Ikx0H4;v!@EJd%O7Ui2sQ)q!b zxa|X2?tt=v^a-TEFo4{YYGyUiCe7WkLq$nfbLmie@QtMpL$UBHA)#()F;uw;2}h*R zrgd3s{kVA%wnZ_XOaQJg+ymQw{%lOkq?-gsB=NQ_wC(p=@-m^DQjin5FEcBDH7d&J z9P~wX)|(AKm{}`)x%HDDWi4p)>2O@?&NYyLP~qi;34f*qgZsdo)DfH4zN( zzsY9SLVwmmY*KAJS&f4G!ijliFfqg0Drdh@5Sr}5wkfk z2Fau7fW2l)&5$oC`Zr&oInQ{qoYIAdrd1@6JZ`j~ZnJb~N*?sa{>OBe<)tUn$NXW2 z#W)Ehn=Wft0w&;gwIH$2nm#p=WWZYU?qe%`pAVvNuu?1S5kCE#xcam>gv8_@@ z)D>J**gN4jgR3pc8uKt~yYgEoRtAoRN-f&ce&VII&#TKT23@pAOd;xYB{eJTv5noS zzBZnGjk1J0UW9GkjcIR^5HyoMfn6q4EHAmAn{o(dMO)~uFs40536Q--8#oDDuuRG& zn?a+8;=&ln72s5g^(y*)I){sB62?t6v~Nfe6+MmpD|}USA!j73v%Wn_$!X3Od9qnm z-XjtcVEeQyocu% ziM}A1wg76>(`<$x!kQ1V`PL^>km+VW(Eq z!0$j!)DPu=ny_4G7Y)-{KveMUxEAFd<97;qpI*yOFF*%4Jvd4@y>`}FBdNwr_O#?8 zo+;%T?8v9Booi8pd9dgf?VHP?#RJlKxOXl>DHH4nAnYB#mmZ=L_}OSDc*s!zhjR3Y z^esYnZlb7K>*5bYEP(ovm61t#VG0xw5KS|zFGv3dv$Z?_8PmDWr`1kC^ff%*#Z)vHCixj*n10v?DkN4<*Q@zrFM zriAQZQmW}$Y6fwrTvK`(u9TuC5pnH{Tt@~NN*=O?D!tp4bO4K^=vJfYR^t^-#f2N_ z0=FKg2w`uxW~T>u{8zgN7(JFvB=ToIENlSVw9&iMH_?w4e5VM$Gl}ms;v1!cOLgNr z_rT=4U3q3hf%Tlm0U()}WW9*WA{}_hdujvQ`H6I(NRbj!!O*Q|;6zEKxYO?M?M8O3>w}b?giUM2w#ujFYC>0t%_VjVl58L3r zVZC=3GgpO;k0P*DVy*>W0|Z|%_y=J6;LD`jjc4D&5fp4

F}x*=l#Sq1C`f#)LH zK5!-Nyf%Fil^Q{3;79ra-&KVDOcT$@o{jw0_o?9SyeDk^c+A5LuR$3CjlJ|h9Z zqY84D8Pnc{i_E3MsUZcoczG6Fpv2-*Jh64t zoy==fF(0y4gWms0!_@dKyAOR&9&wvP+~$yeXiX?N?UR|(rv_uA@r0WLCGr;0Wq1nP z0wA$1rOR!6m^Vq?6t1nW;Ul0XIw>zZRFgG83xW#eujTg2ws==;_>yU8u&z{T_&AgE#< zkx@y3Hk!&P2UvDAD{XdE{F0R*_}s7xd|rZzaB1IBQJxl@3er#>ltPvVrI6(Tb542w z>XZkM?576_jB~*b146nX!!)XUv?)JYKK5+dA`_R3P+8;dB|H>{sh8eM)*8-bQ`;y) z!!Uzeoz27-(V!>TBSSKgBnB66O%hEyji9q>BWzGDJLZ*r+PRVbxdQqFHfz zE$a7)KjMRo4ay}^4Ysr-Ypo2?S&vM*dp28z<9sNWusUlT6d+Mc+sexeI;>Mk<>9jW zTKby}t@OpjODAFvDwIHlaN_Asm4u%{Y9sJ3%43s^+PS3dl;h<%H?iLWcrRQ+j}^pV zl=TgP=7q5a+PN^vsD}OJEGwNumry#YJEgHvT;mqKb!|~&hbLg0Itui`QCf5cIs4JJ zpO9r~szrURBZXaj0?hFVj&*21cCb-Mqm#fKE*_f~+Nx1qk`xm~ zpD>b?fnnB<8*c_X+I|uiZ-vTvQ$1))t^&208Kkz(!|gVrr-!xD^hee*A_y$q29`D$ zmE)jz3zB$P6x}{p;|1)5 z=mC*Z{MG8K>?Y_75^2N=|BXL9pMaT&S(xM_tHSo9HKjbOnF<%41{dyqY#GM|W9fkS zH<99Br;e=W#c=!JGN||rZmHeRn7WT@TpQ1#07Xy4_Zv*ZZ8B-U!M3*(?RDPEanWN9 z#|YWVdlG-Hj-nRB-c|f!25O#0HN5`(L!W5GDOCHZSn<=aw0lCx8wCw0!(Yr`@-m!2 z*0079>oV)5P{-=2&+=ic3-d?y0VG|48A=G(O@Hajw3qQ2Mx`Q-%ST*9fKB)Uf^NRcwV`>iynx^b| zo$4z1cE%h!hUGC-k?}ssVw=`ZynTawIB7XmFLydt_s z4vAr!!iPOa>(HTE+TtK&k$)wOiH~NuEKdki|^oi4ojQMmO1J4>dhGgNV zEGAACS*O&2#)Vv=asIBj6V#0t@n#W~qL4~aNSu@t2rSO}*L8&E6x&g)+k;IsDNEyO zQjR`pL!Jsm!O2oy#NhhO?(>y>PeN`FlxSGpt|ahl^lM6GV^;VumKc{-=}u z84wLsa)5vC6S}3_pq{u{y)99uqaH0KYVjK@oR)}U^glM9fhJ_euQ5tLC9@KYm zb#%RUezesn&p%Jeiml}kc_Vi&jM=Qu_=gbFhwvy9iz z_8-*xp>@Ve{g@knw|+k7?-!wdZjc{TYE?g1hg|C?@z1h;PIEFsFIhjQ$UMJOKh2N3 z*H7UgyMES-6#vWmDU7<;PmVk<>n97MQa`7X$o12NCi6ekPc5z6ZxKIGYsYTe70b|6 z$(IzF;j!3h`1qN|w2ib(I#^G&Wm0@qOjG}rcjN3Ac~nP%qaBROlPJ-b|9Fo7b*HV@ zgZuNj=l8AMhVA3?%i5OKib}y_7)=T{G3fj;48Fvnvf6d!43V!dn=J}ZGmS+LGFq%USIBkGVIvyz4T65 zn+5VaN;DOoM2lBL-m8Mb0RBk|hm)tRCQIYy1}8_&Eei=`bGu8Fl$u+}yL=&c#0%)a ztu8?%q*~451_z6Qry#Qld&kOY2Q=0R+Mq0W7;VrhiHN#gskJ@Rx=o&c5)ga7PEN3{ z#)-%s6iS7?BZ_6Q%H(H}lwyso(u(yy^6JI94hh_fb)c4uwSx{^tSphxy;#p56tgM6 zQ>+&(_hMDb^Hi*ERIC!5u!~hSLKf@a@+(J5v7VnMiuDgsTN_rjEY_n)Ad7XUT3hFd zV)bx}b)85^#meN`g6AIvROI&7{ql#UTDn`5>Z=x&^`1OG0}unCne{K6h>SpG!EpZ# z!|gt<^nB@a+#S^aoc*=2GIo@jPSd-|1I4 zdG$(S149*5Be!f>`P7eyuDm28&3f=K5~EpWQZiZF$&Cl7#N3bS^CeKGasovZ@Ol^? zU7S~bJlm+ekYkJ^9^;8y@XM%v)RR{p8*fy$7w6kf=xv6_95;i9t`r}C8Qt8PTeL352Ru9d!S{~uQR`tRK<{R?@XD*YO0X1#+GTw@T7;p6<)IOmb61b4=UGf>Xv}!sq>3bgI zgs!9)vvNG+b8v!5x1K2AvGSn>IB{k(%@eeUzY^#PcdO@B zVm@{|H9HC?F&|rgC|S5$(NCx(JPfTIK#@XdM5Y-Um*x+7i$Cq2 z;LoiyDj06*&?K^!P`Br%pmNrfqEqd*YcW~IDKz>(Y-^SrI3XVgA=-@WhljAK8QZR6 zO$5`^?ucex!Hl8Lo}=3)oIV z`Eu%Ys3QE;3*prqIityXQ3+k#D-uB$S`9|hlRVAW010ZSUB-o zdI}%j39j)}t7C3{pcccM!|ls3iRFFl23bqb$!{HTEx|)#%<}96QA;uku9@r961);M z<5DD$wWLPD$vvyNmQJSw*OFf(q*`*KV1Dck4Qe7(MLY{S0b>|AN*TF{AxkaR@R9Ad zjDp{g=c#`>8=6_Oaf16N@KoB?cc{@1&?5POrdYuZd&AeuLjOm8*hne#i;rrBUiop$ zLYE_fOQF5lbE(kD>2%;i-y{;c7J8-ihlTzMEA!k6{joexh3*5*te0sC-w0S_`O))? ziX9Z)2kXpWLj-FCrQ;$~WgDeACk}q_BNY{#U=2a%P2CW>Lix}<4POPikaWYt@oTZ> zsI-TN7MJB?lAqXaEyoc&;tVvB(#oiq|)q*qVrkF zD?y{LTlWp-7~-Q3q5l>*40|TWW&YZjx?Z%GVw!Kmya4@y*0^6)8V3*8V(xl&CjCS# z{lqPN&fmSm#I|M@+4vV5cQ{d@;2T?pN0a4+al=jHx|I80fjc41L5Yu~siUsf`(kwJ{z$ zLV&qTjcNPoN7zL4zS4e}9@vKH9S_B+vUmv}Ek`^^=}=Nk*_)W-rO8iBRPd|>RyvZx zIc63hHkq|Yv0iioohdXuIHD!_L(`}zzA4RgFs7Bt;+X#2g_BCCapZ~HO~^`@L&&aN;8o3fV(4Qx2MXW3S0m$5TaNNl%`rq%QZ@IZZw(3c(RHjgg(WK zFvf~bV_$Rt)>qNioDvhN@ybrjt~{{@=f%`!kY=1I>OmlsV)alp0||K0Ih%tP=uwy0 z<^nTZkJ4FGI%bJL%@%uXl>Re4#l%UlGL`DZA9{jr&5!PfB9Cv%VWG<95DKzt z3&Jy+V3oc@8|lB=BLfQ3>;0ZOf9~>0=hH|N)ZvjR)f7o77RMJFb)HBKLIq!Nc@#}y zb>wWcQ7Z9qahtEGpt<{vC#G_VOK70slo$&ItaB+akw(sj1j?~?s=+)@*gUQ3E2q3j zg9@r0S4NBb(B|wluJvRDFotF`h%pV;{y|T$N!a`-68T{Ah;i`nHqwovn&8)wG1Rw( zy(`|K=1pNOTm?;b<2H6Bl5=?()L5zc+=4rcLkDqaD-P51_}W2n_)#2oi^FJf_=`Av z_%0kka!Ut5r9wOijr**LwyR6*oNdOil6K*QUq~%Hpi&;FaN1})GdP2&wS7Y6@=17` z;M$lu&V&Tuya-x;~nW6LLiuQE_NbT0ov*h#MO!7bQkn{({ zP^@b&s$pew(DkO6;fJy@Zs~!TU=U^!XeD$R=IIui^H)h9#{->hX6+AcF*tqNY}iF> zY63@7$1ILMKxNK0mrfy_>7N-}7EP||(bGzmGJ;fg$nSEsyw2dwD#cGFzd;Ih2aLFz8{t%mrKX>iK zTzO+7Kx<4;g05|S(0c8U{`5Lu`cdf?##BdmT?GKlh8;f4t6=?5<*#MARKm4C`ho|L z+;oypOc{Hl8K}!1SanGf=9@jyx`N93vUYXl)Khq{L?}Af9~8|PZPVg8Ikc}NR89(> z>6SZ{A3qs99>HSVn00Y~uDSEYp_e$EE)Ms;g?b!_n*QpmmhB^(>?)J$3x}4?qEMKU2pNKR6rzO%LnRDau*tbRg^NEc%2#QQA_?BUC|e8Bz9Nv z3MD|tfD+wMi^2@9g;OJ2L~oQP#>(i=sClMPK8w~D(=v)oyg^Xmqs$-y-h_Kkpo{K4 z-0vbY_BFkTP>43%5x?=g!5`e}53WHyPnc}`?Z6p8pdk8UAA)FquvR`>DCoYXAicro zsg1XCUvQ1@5VvxFxX07Jh8+c19TpxD^9f6z*x3lIgvkLXdvKNij9B#X0z7B0tP8M_ z@Z($7VW}C!ddiwIbPx)<8C-AL=!rmY@@Lih!$X12z5T?FW3gzfHk*Ox!v&RmB!Q!E znxOzQ>Om6~zxtCr0WOh6z8DIy@8C4Ti}c8_rt*qnCq5@4BN*hwtQRh4t9(`*o)m{> zahM_wD_)0j?nF?^Cep$_-X~8N*n>)Z00s*Cpo&Fx%J>fI4-p1jxqR|D(LvOe!55=j zBQM+!nXM3qyA;WW&BY>f;Bddm>o^tleAZt$1wjWEr!JasP818gTESpHY#9)T&3-n_ z;t2wV=0pey1EpB>W2^Z!l;~nK%GUkG7p~>OY*fueM5?w9R3wyv*0*$*I9g@Rqzie7E_=KSFw2t^3oNYv zb)mEd|a^N=^X5S^=q8yU|mj5b+~Ib4Yi;&3XJu9qlXi}}5>g4TUOno~CE z#ZWf%4@%jBvQt8D^d}y6*bdKn?^Vory8|%Wyz%pxzOFjQhka z$sR_^T|MPTa>wqDEv)M5q1A8l)*;!=*LnKL9u|!mJ*?;^?W>NDvzA`wcr`Kw+?fMj z#KgSL>tYJ9Qfan1>yR0I1S^m*^`BQY2I;O!qJhDaBATV;%RaQ-wU+1r*Z9-xF(rq; z{@i6H51FAsDZZ>4Gt`EH1T^IEO)$X|KV{w4?htu4`O`PyeWj8tn0Jhv5)3ih50{ri zQ>1xZNQ&EWrjX7QE%IT(YDt4xySBn$EL6oXYk0J&(P!i)hJG6ux%SuVZ;w&0{n+JRcOvtypgiftc|3Z zhiZ{DW>oSjzuFxLpss474zxC!Z63lq>9JU8l3BY84YPJ1b*QyJ=9q`-?DIQdP_+nR zDSbaReIm~PCer^&O^?A=Ek;(9et@0+1d6g^%gtamy(U9rCzK0)En-;?d8xag0@`oA zIpqnipdx^9)Om^kO$+`C3QXg@uQ8s%VJ-eYN+UTctA}PA5!&HbLvUm8C|;z%)8aZ` zt(E5YEc_I=D5rNTL;^Di!l<3Jg-(H5kZmRj4O;leeaMF<0p%Yc4@ZBH51r_>h{kTY zfChl~Z|Y&rKjGw};wj#fi@0})@}RKxh}X>8XomlB8})rOOstLeH^Vbe67rF@^!ms` zGjQZ4Bk&mAhC1JH&*;O{IZs%W5n=GrJZ8?$>1k!*gjv4EnRCSQ89KdTOt ziut@uHQK=!tHIPFLXPclFb8dIu%@4khP4H1fGKI5BL20 zPp2dd3neZZf{D$FGMw|#W6H)pYw{263ogtz-mA%4B&X|g=uI-K250@?508rZ0>{$E zEQ*|f8&PFullva+3oec(=U4S>=L-)(I7_Dk&1n3>GmG+J(Uejiu6$`$Km@#dH0+O=Dh;{DQP~;_(>I|xb-yv6A5it#6iGy@g^@+(!AfBRb#Vy{LI$)R#rB*nKSu-Ig95OJMZ3H&|sj-(IZ*E@POVrb|I(zRUB4}oEA&SIU=6( z`+7U)0+I8if1yeKwdM3g%l1h#NNAtnnqoTgAHcVKxZ0#D}YLwNA0g+ z8)k5fX^ZJxxZ|l(eryKGaNZ5uk)^DRss=TI*Je;P=rHn9W3qnWp3v{&4XoUTv5%r| zx+DH6!3cHv#B-fac}>|Z9Qfp=l3kgxyfh5ru+{-JCPHGa<2<}iTst-kd;_lTUFckW+PP|q*@zdP2jlo( zn-Ol&AAUXJjOvyq17}1FU!o<;@ z4l0By^J%?uG?^v>Xg7CWCgHSy=Uk$)Kf?AIOo1 z3nTPu3i_7u7__$=QkB?;2kz@9BG{jh?eT{b;lg66M&M&g&aaQ3=no@m8;Ulag5ksQ zF)Jdoxlgzr26}y3G|>z`3X2&;LG`3`Gju&n=VCKFK1O8=j6_n59J2AuFS}$Nk{~!+ zIw*|`2ZE{wQDY>_WYZ}|mpuwEzN3R_mMbI3djN5!Tm_27ym-+buR~!rY}gZ^#zY&ZmA%+!I!m( z=pXG5omG&vZAhQ*^FOB+6g|-wTRbfMz&i=PhMm5^Z|Dl&#rcBVb!B*^9bpYk4CnaK z;KvW?vp3q!7h6INIFGu?oPyvl7{CXyd~l}`t_4~_a92Uro&xl8=(l2BjX)!?{Net8 zwy4j%dw27Y%I}Q|>JozcsKfll7rHK~Ak@K^yAH3G;B>e!dr(!^EcBv_v+Age*hN!P zp5y-9En_RFv-1Vf7q9}JefXVbR1ZqYuNs)?r~ZK-IpAUrX`bRoFOiC#ryzZ?KX^BM z4y>EL#(?#6xD$01*;T>@$S(*JCi0CM$n4vrC-{P!X#OwU<4eq)i8#ZbzQ`AP z1p1#@5V{W^Iyhzo)>7?SF)l%_b zU3eO@(0Ghz9B?6xOf`jO&QhaY;Q?;&#PVY+hE`!F0LH+J!oJ0KGT=2X@_Cl|a%;wR zCkG%uIZ=QKb6@V7F?EpuRfp%0>8Yo8yKYB?9;Y3~53y;9weY z+)j2VhomB~yE;zP^+_8HPH zu&0Rn+d}GZ;cxi?aw4-cO85nw8qM~6z(_$o9iW&JH6@}Xj7`8*d<{`13EbhrWU{R* z=neqL5q&gxHce-Z$@GjlbU8RP<8@9(_os#K*3Ma|yFvsw@%}1Yk%8AkV&avHVhpzN z%Eb({B6{VbijHA<#O;@njBwPbY{mjN&Iel!OYbPW_QW6cAVq&sW+{mW96oNmL8q?0_A481FMEvlFul8V2Zx~O|9Cx2sUIm`P%;KWkY*Fh%B@i+*2Z3uDLJHj^ zl@#qxulb~z;g4B0YN7k6h3>PS!1GXk&j&OYR{1lEtV^-Vk{THz20uN`r?>misJOPV z`mB*}^gFd{8&$9$l=@66MMHK7LMco@P>rVIR%xVII@NS0X^!zX>et%MQ6LS@aeI?) zpZ8zi-ZpeB`P&DM=pWTWGmd6>I-jEjbW}UEEU*|yT5>_Zsiy4TO*lvY5K>umr29A0 zG1Q6tDw#H#y zv%)%-pZ|ZfT?>3v#nn$jRstm4phN?Lh8ipJ84zlsAc+RNiyH}w5)d^iVo+4X1WNs5u;*F0C`&FQ30V9#MfPyDq<@kQS$x&XXfrJ2@hNO{m9(C zcOGZXoY$N=GlQsCJzUN(1u8M$glqmi4hPl?R5ft3;i(=K24BTMlr07?*92|*xnTs`(IYdL&;RiJ&L7j~U%o5sDmHa|tV%Z#9 zP6EWZ{urKu)KZ|ru%~#HO5v~IkC*h1)R1gDB5QMkM)CqzbBYb}Dk3{7$)fcK=xUE- zi_sg9^a>1+E}j(_R89DyzyLL9Qil74{f1O2gVFGF%=n^Pg*|<2^32l-%TYT5pL62? z4$|U&I;H%fQQn412%La56Z?hJX%s<|E%{4m0)212GrjJp+#4kpjF1O09f~j@qwJA~ z=@*nOpie`O!yehs#J42VW(s>mQZPsb=$ijbOKs_+W5$}jKSHLLEY~s}EL6dqK9bqI z%nZ?9TrB(ZM`Uy`qzGFeabad(J}MVH+}HDTL97dX{t2Bw>y2(uivWe`I-TwyXs9NY zW#KvvHG05Xm9NK8`Y*qty~&WOk=a77ce!$Z^} zO%uwxRy5siRKt13x`KZWVFWAW((#Du?6>7;bk&Y*9Hii`kj9nJ$`F{*DBBb20R)f) znyT<4-Tsn!bh#=gXq`wipber26We|{80`)wOdJ_3*quz#j2cWu3>+PyHVFCw6!Zd! z7}S*YV^P$M2n0b_@j-{JG{&hA+X2o;mHc~l>vqoac9J-x==kA<6kcLn#eymCCdS-1wS4ib$%DfFx#-i4g0i}2F9dvo2grT)FB-Yvd?8@KT4aBQ@aqs;6q7PaNfC-N)J%d%Z0h(3Q_$$`ZrK3Jx8_ru83m%401QY!5?d(TND~GpbhMtxWQU=BzTRczPKDGUim` zNg^q$c9nI651@Qx)voe$#2KLY8~OqP0Map>ugqR+0;^n2x`W>(GRG?E@sV;g>}*{} zzBN6*AZPb|oduG>y$~!OG>XOLJY&(?z|HuLi6`M9&{GU-`@}*=v$1eh;5>fYC2kp~ z)A?^^qf-GFz6j3VmY-`xM8!Y`j)XdQm|&+-^?_(_%veph!?1`T`ngq?!CM^0sL;*m zn(YTp5`X4>Dp^qpenxnaqtzq$xgfJqG4m^|v2vf1bW1WT&<7glOsSV&LRy98{&CEP z@fPuFjf8tuPx3)U3%-R@iN*)z@S4P=^O$iRo+VJ=UHJ&U;0rK&oqYJtn0p?oG?wE? z@+rXTN5+Dykg+xyh?$qUM;D&opM|aKkO9qbJ#I~6woGxQdh32JJQ>zd@v6+!}G@Ua(CC-&d~Y2(Q96(^Fn#m+1%m7viX zhDxxx!rL_7u>Ozr5*Dm6H8c%j2#;^S`*kP&Tq08gJmIdPse>nLi^obvILF64SsK8f z0>JZYyXRQfAwdT`zWTsLWE~k83{fdm@udG#s+ge!P{GllK6AqlSVN)Ai%`L8|B8$X zObiY0LO|I;HY{y&*LB(c+~mQXw?F6hZFV2DJ@FenzI8lE5m27s$=cu!Etv}ZHd`o0 zOqJ@y2FSe)Lnp5P4N#lk5J(<+=lafW-`0Yx4I`}NC(%0uqp)|U54DCP-ZuGC8JWd@Q|$qwWVM(9 z1Dg&wA*rT?S)c(cWF*N_Qr~n4j1QkV%Q+T$ z#57?zBN14NkM>E}x`Vy0i;^Yz>;b5?Y`kwvpM6hDragV8oVs+T{+`(|%8G;;pn~-! zQVcA&1^M!Ek=AD&&T|+_X4}jJ>vn-mAgz38Ae_9<73(#LUBEvP%4;ksQpHvq3mCt# zCb7f$2>kDyS3BrJgk^cKj|zco7LRx(4{TzJql2+6W!|%RCO=Tmd9az!;?5AhsFPHw zQ-1LN07gNS$e>)0H7p+263lv*k{$86Gawx>98hzvGoE$C3mu(!39f*XoYE)5zOIP#+Tl#dd2DUU67 zcu1h3lZDU_t_*wK=vL4O4k_Op>;^FH0gR%4Us6;d0ekJKilC$+I}542GmLbV+h zbc=PS)iMreu(3p!I$UL-JKtc>9$B`<_6g}kbpLrcNdx6Zh&Dz6}HL0m# zC%CS9CTdW_9VZ$quWJ{L(s(g!7T>ynM>NYJFWazazL+l-(-50p>*+w^L1jL5jN-UX~X+ITYgkX@zJv*i^xdz)0Cp-Nj z>Al3Z&pCx=;yg+LZ14pU?4Ery-mFRNcTQNZf$%j4IjtLu;t=SN6>smP7R6wpQM~|` zM^jPA8!DB;gw$Hk6i%X21Q<-l+zO%nAtJV1pDl6-gPuDjJwiru`X~+`x45Wg#1k?- zEKjTD>e~_$NwGxpBT6TbC#p|}OIl582<{T8hy+&# z`UIo^H=5ceN^McXP7Ssi_&_g_2u@TP2Aou00rUh;z!&?DG7#4bU>aHV2_U8#N19j;pmRLz{0Kz_pj(h670B@tPcop{!sw45iu&?QEr%Wd|{$Nu)GZ zOp9a2HI8_aN}SD|iG)|gLy@je^*y3K0v`OGz#sgr{h&)YZ`6Ij%Gbb8#99y^qwq8J za^R*faf7z`N9e@|4+p3=i9BO35#)<|L!=o=7X8X&`xzij>?sXQ!7iQ`bvxnu!C{-! zd^UwM#>#z)!j~v6!hBY^3DmNKy|l(M_z_3`t>nZJ&EJH#PEchD19%V>tO$ZBC4{kj zQRW_`44TMfDMvnI=RId;)t`dX>hh5z*s<0#=myLxFe4pr%&EpJ%Ja=%apXeN5ANSM z_&EYHU7SAMxn(@}P9s2<_FQF?jJUTq+rd5^kL9}I)~-A>(32F8*76N+f_xg4c@sAE zor2xRhg6AAA#FU?h{Lc4l9S+(&Nt@V16B*XODRMkK9|X~)4(etoNy+RHTe5my2?WR zMY@4sN==^3n}*dEAgBwZYRoxE9ani+HFc+yH4h^W_#%7;OcZsOAq4C&akPqgt$Z#s z;!_Gfttm*p@jSW|J|-IBQpjKyey;gKq?EG?zJX_edmHjerbTepz0Hj$*f`*vKd^(g zA%Vb5YuapzN)cn613b-&oWpq_7NM<^FE)L26%{1jL|TGCpd#*%JrES!i)D25k^u-3 zbgw7U!U_1%h#Y#+&Y4iZ#6p#;Nn#=^O+}=ZYsKSQP@-lfTBX6TJo7-`eQ}l2cR4!p zN9db91$EZ5X3iAQq8xLn@KaArIfo)xCJ+L{VuN$0L!Wh#y_3dZ|Jb{0*p8mqWzcPE zqjvt&-Pw;vTDH&@eoWyH1ePu-D*1;4#h;AD2}>=6*J`=w{O3Rs8R3XOv8IJDgwoV#?#)x zU1A{I0sTq1Q|bfFtWPq1DK%dKI!#%OOd#%limo=x2e1LTfG{=$Dj}Q|A9e)<$v1+% z;9C$c(6%WIGkr9ENutw|=aUv^Cm27Tl=8R^8 zN>-_4k^1(k`t^!RUR23qmHb*IkE+Bk3A8}MLQQ#=Yx`nnrTzv(T3mh?r1NIX*P`XI zF?SE~;N1tBpF~dKAJ9t)cqWhJB~FpR5S|9H8T-vBkum?3hQLr1+9)4qpK_(5vkWSQ zbQ(7h^2nf=jpT?*i}@2DSv{UI81YexWh{7>3o<9-0eb-oGVj2{+4gk=3ppcg7Kiv% zrH-jDyb3w{XdIU~cLLil8Tu22VyPclcaDcb`L^cmxh3_(rQyOzh^b5fP;e zYX2U*N^$v>jTNZFutp(+I#HHR1ryAGEk0YoCdlyvW|2nqJHj*h37G5|HP_*XJPZJc z1;%S>7u}f>H=)4S9pU*SJD}$D{Q6)bbjL1_b>_i&DRBtb?bQq6x5ff8dO_{D9tmzN zFbE9ZJqA7}CZf-?PaIa8coH`y%;ljXf%gEGN81;S!n*=g_wJ*PVTh?0eOjq{B1bvb z;#P9bF$`(+3R)e7su1ZQ5ACB;hOL_(V4k=Dz{3Er-0lT9rO7eTO*+P%+F~@Xb(0>e zNTw2MoYXitW9T$3jiP$-c99OG^P*EtR>!p3%^=C8#Boh{agoX3iUx^JDhU!3$mJ0}#a# znq6Qm4PcWK^{m1gxaeVGvYn~=`&YE47d2HUEjSPaAH}?Kl+<%1Gk;DSm1*K*ZGnND zH@?**GI+U47L-CzP*Q8-vbDUp8mtC+0d+r#b2t7G(Iyph`JIyD3sg^>AzY>`a}vb_ z@{|sa+krlKxd0YD=n-RHka-vQ3Ikq{c{d(Tv;QSkX$_7chc8XmE^{}|KGUfkE@iGl zU|3=OYcT_q=Rx?HFiwPm2WBpC@b1J&l8iAA0R7mbhY|0T+F_Z?bB@@x;1gC|Tt-Vv zWlPKHsd2_!&fDrJgaW_76GmdgeAcW+0>stEgsX9A>tPjyq51&sQEahKz8#2v1W&R0 z=`scjc=w@Wljz05A1IvyAO+M=mAOdLddLdOUWme~cQJ|ZHjRVvi3etR3LiMNzZMa| zl}!~aFz+#FEpJmNV?kdmKY5!v8dVE0WAHX5VVxfOfS;;vkcSLo-Ur~fN@z~>eLh`$ z(sxieTMX$3Yb@4Bw1a~;iXN1YdMx;2Ko>Op+Th>Z2Eptb)a?y)D=yeAzcw-5^sfBA zzy}=xW29MT`ckvEDTDiC4{kR*ZI>g)59RwBwl+dKWA6&~Vx?VBBc@U!W{C%9Ef>xP z#azw-g=51tz)}*65-f=?A(zWI-t^?$UJ$)*QbxHv9gbdB;Bb6tf%deZv6XWnL9XI> zgTNNEb0J<|rX6J*AMfhvAUKK_%k`Ie3IJ#FOmYJtq96ni65dCblQP&mgil|{o+zwR z>;&EdRa7=%6Ik5Lj)+>CLotSoqL!`VXtaM2i}vLhb)Y?Myr4b4u9rr8cc8rnU+bWK^VTNsUI*=U)q?i!Cu+14+d#2dI|`_?TyOc0fcE`3COdMu zN~4`@W^yG5xJPvnXulGTX|xMcQ*M;%VOeSQNPGgRq5?xm^`V(CQXOPzCSemL0UW*= zfkm#EY3CYeP+ckGK+P4zCSS|~zW|FL-y&GVR{ZH5@_n1?zf3fiV@WUNg(`)TZgfpe zhy9C#Ag+kd2dQ2TGaU}A9kaV(9gLGtOyPX1Wa}-bXdFZ6G~g|z`XS;C9aHinyv#=r zZe70WkRzVxUuvo6vIH=ustG==2Vjs?MCB%eNX*2Lqw1bEDgxa*D3UQK&{T+yz3T<~ z&lRfokg3vk`v_%sab^m3R3n0ZX@o{k=Wrvk45Vol1YWAgAb?{?V$i=(S&_M$r(xxM zQKnQ5RZ`Op;cY;D$<2cL4s;a2tAJ~UfyT-7ih`>ES?{3&8HKPe3@&sC12aKp%djWs zh2*eUD-nq^>yXOAp5DR^G3C8mx7&z>QKM?ev8+>d~# zyMpHzZNXC%0neGo0#A{^BcQa#kGH9dF~2`p!`qZ>RQ(#H>upLgs(0vxD=9c)px_4Dh5K2_A8dDeK!2 z+($yxISR1Swg8(!bZbP7JQl!a4F0bXH5aogAZpJIZ6InN4;a$$G*ll0qV^3s0z42c z_M0c8H7MdFT+o>82#l*_&v6KOGBFi|Vv>d^N5%6H*;Jo0Ee$P#tMDCqg_q(RO>wQJ zt=`>^1>QjdZ=23?l6>$X!rUVI{qQYr#$r z*Cd`WPR+!2%s#WWJJu%kyxIX69gZ1&m~pDwv@QZGbXu&!q~^U;VASAY`k^$h1E!|V z;5?|t)pOY8qo~HObJ^wS>hzS1&^Xjim202zFPWM3Qc0Rhx~in3O5#*UmCsp+PVk&miMxS*g8`C*(bje~glembN`ZF%2ofv1oy-(2~rpeH! zV)v17FhLF-Dda&*!QZqyf2`!Nweq(WD`L@}u_U$*YNJ_!C(P`$-wd-L42mo(3Pfke z+2{RBL4>i1T-;N%>jd6wWey;6{R-<-in zXKY1da39>0vrZn|ayTxo{3&!RPt*+LG#2ZiedFTF&f>{OE^lL}@~+;-lCnq_HG@oTu-Hk65SPZPXjSo!~hPMgorviS2>R0gqjf2Z^%J5_?$J(4V8OIw$UxxEd zMbj-t&8sjJDw-}bY8Xsh(S-W$ln1nM3m$OSS4DG2qvmux%Q4;aKEfbi4&`0B2`Ag~ z?AV6A9k4ym+ng}d!zg2KGT^~-NEh##P2R&Dr~VU%nO-=$2YQi`i3Eggq6U(-$62~8 z;xLvdnhs%(lU<$#qfc!1?!gJ*>)_Nt+1Wquw;p6~VjkvUDU`>JXnL)bDE0<#giMeV$m*34yJv3`@=*hA8vkQ9KNFm z{Qzx6)6Ljhu3lsM%-22T^({vAbL@@!l%zhjU>04`G-c`tG&}9gil#E|C@eRsQqV}C zESw#lB-X@W)rzL6%rxDovhh7IBAf|cK4$uZWSS6yg5Ey7UMR2c4!vf;176Qm5E#`b zgeyu>pBUQ&(b;s4xsq2v(bEoX55Y>e>(-S_C zWP$qCsFF&RY$$?y_zd$z(b-}BU=`p%J=wf;3Wgr>A&b!o*}TNmTB3cAIx@=Jm|)CX z4Dz9|`x0_MX~6T2ldD!4-uLO1;qB6SIR}jDeCF~t#~X8&^2sWOdT_ijp^yddCqO#f zHmb6UrV^v73xqqoR>Pnv$~sjvon=(lQ`rda;k?4grFOPwNK-Il;KZ)Jo!>DdAUvY7 z0b7MULv=I%INKAEUoM_=aLaNs39vkQO{SHY7h2r43X+=4&5ax>EbqFSrs~NHN|Hx# zAJ=&_+w~$u28S00uwLuYe!^fkng(*49sPW;3~_Vo;wB9W71nH$@`J%O@;rlU-V&jU4S6m(AtM}cusD0kbs)ML5Qw7c3R1)?-%EU z=7BQ*m8maB4{cSTlXCM>)L`iNTsVz45eYGa5ekff#6#Z&`=BLz_jpCP8AME94yhVi z6=tLxkWr4UustTDi+C8AHr4)wULlaLFy`Zs(?ZLGVD!xege0^%BD~w-R{PtQ!;z9z zbsV;Kd7iSFap<#C)B#%s2OSA)SmNbt1&}~uRO`A5R9Qj%0TcB|k5m=zgY^hwyn!TY zEcC`M)Y0Zx_+1aHf|bWvFjDZ9*j`AE5Pn}E--qylxk{|yOR=ws$X|6a^INV9ro@Oc zmJ=c9ZTLax#2(kTm2878j>~#+)ZluD+;O^;VLe8~>7ZQNbf@Q6G^Uh2;IZ5Yxo?<# zLIDr4gmH!S6%`x-I>eG?@891`Am9p*CQh|oQy?~l0 z2N&SRm%u2>uux=7H1&Us75WIV4b|fawxf=H4CNgc**rR2$i|E0_{e6ADmeVO3udT- z-HxxI-GG&T*b;B3=H+h!sxal4syfQNfy^Be*}hj5qK<|Yr% z%*)+zU*BQIYsvW&@^MaTN7EYBKRyVe1ce<4zDdOby?Cy^PG;_h>b;W&SzVGWU27-8glyReKYN8IRL?4}O{XEv3AT$G~di0jEJPW%Z?|k222#;6yoNH~|i{&;$USZr5_&;6RZ_D0;{wvsU}5 zBe7?A@0RwVZAn~Oxle$P=dt?WdzgxLk-p2;l(dfWEYhj>s@sX5aWF^x1OF(`T)y@X zeo~%i@YGV*Zh6*dBGOU?OQn(U^*uH$HIM=*1^tO$jU?a*0o58u&*Hm3@t45RvPw9f z65?jcsl}5WOo6y*#sE{MV9LU294#%{besU(rQ0J#L(+f(X5r>K658&=vMhvdYm{x# z;~hcBc#OH9w;B(^ zgyK9n86e2@MmXXa2O#5)xGGMT`mN{eV-5@Q1aN;5vfYRD!BlLbFLU#A*$^C`+!x2W zW|;nBqeAI|FAf&Zq~_)%D)JW>*y^V=lCKLw}FkQP7?WF9ZC&v2Mw z!ebH4AmU3S?{Al)aleDSR^vaRt@iyOe~I_#iD;*CkoIs;{MC3_jFiXJZ)}USF_a-= z!2ZQJjSEHE_Ar7`MKGerZ%lOi{p#7boFKLnvY%FWbcGygb%!s7LIJ#Ezach;SaHnM zQjhum;2D48$H<;<9gHR)iEhuBEBhRx^a)t66I;!Y6=PI2bG*rDf1m(=ddaFzj_Dr+ zPxkKeiviDjz{HIA5FT8x0Z*O{5CiX*_aVfPPQ5a9fFUBb?Ck3`7U0}o1TCUY^H++6 zKSf8XpLQm|6<0^ZSp9GCwL#Q+G`>c+#@BO$1Ye{ub}KX0IT{BS)XW@YTD@>H+<+ZG z1g=!tVK#iy0Uo9D(}w%Y>XU~1XMh;-6H|b)4wxN`>ynz6^HEs?I+-5Fi9mY1bH7j2 z_#1O&H(%6v5P)I=P=sLzhPWp*ck7JnxU*>@N5vHXD$ef5Wj>fCaNUg#Bz=@Ijz)q} z2G)QK6)Liai{zHk!3rpVDUHB8#ajt7aLuSRE<(vK`}?1M(Nw60bWD@rU#+%u2GB%f{M0g)_q8_i zCW7FkT5n^AsY4~7zm053<(E3yI!--BvYD;&*<;?7u3oK@D^*e;3G9eBOSI3xa@F7E zY@<2(A5!F=i-8>;TNozV@c3FG|MG2g)3)zlu9sfxz#JIh;*fwpm9z7H-_gZDze;H5 zKU@|&@H^PYjY$NTE;h^kTG(Rrt;hF~+xI=DWreGt3Ln(8VaQ~{v8u*L3pd3Tk(?Qsbkxhq-1wv{l8_b7mrx4cO z*>vC3voGM1$wU-8MnoxusZ-zrf2Y8Ncq(T9i|7jF6ib;AA!B5<1}faGZJZZbW*VU@ zkwtGg-obk)&6qO}5Gbg*7(R=?tl`0k4S3#0J`K$o*!v;8G~2VNW6`p<|LitwT#s?7m6tSiPnE63F?E z+>uj{THGxgJVd|Sx*oNO>{2~IxU}1M$io|+4$1;R0K3945RKwC0O{_qZ@LK;$ zFQhgzv`S*74ZDF%2aV^1I4PM1Q-EWbP72Mi|CGkQ%%D$0LK-;#)X_uIJ#@`v1r>lY z&>u3)^sNoxP)o5QfN1Ud!_HE$#2#c~J(I}=w)}9I#@YR;v4-!B`n%u@zh%2*8!qFe z%!luLB>(@iazwsgB0bt97eU&tbs~^H!mggc{g~~A1X5TYiT`B=i8^XOy8X~chg$ru z%pZE9|H+w<3e|&{$(QoG0d(BC9?jw8M@-(7S$OWZC9s73Aw};tEcTrwd@0;K3xhrRu zuwif%F6Z(0!x?TvfWCh9_CH{$1#z~Y>%uUYOD}Z5gn$BBitV5$Z0Ys`2!>_F85CdW zYEsY-862ET3^1NOkS)zFFtAi$BCy%QaGd zgNNWBCI<29*J7`fYzT{=l1HlT3&w;003Ip4UlZgW?&SDBHN_ z$v~tO{X&LvBol1L@xIO1lqh~0HU;rXn9e~mHsD-?nM1Gzv2#W9;PS8e0y-fap3(_J9(tsYeWN};Y^O*4j;X2n{m5qE ze~@7;?~h@`#4O^xA>ps**hTNYi1E`{!+_C;0p+Nc?2yLULk#=^F4IX$Kps~)AzurL zOB2)TOHJ=OU`zab(4(wC*8G5qR69WzMmbvVLf!ZP!RFuuF2?3yJvkCuPaK`j7yH$I zgr5=w%_o6saNIj*TC5(%SbYbSMTijIIEJg1C^7W<4ExhY3?A;AEs@*m5Z$XnQ-y5E z`p)WvmA3N&x@hP@Wz(R1{NjWk&1Trw$aX#Lv4${_(bt_&@pz^Wm7mK}(g$E6wXJOS z`fT*oximBe{tp!V#pE{_-1wu1KbzE)N7R(#-QxK0ad4F@1h$&wQsob&A@ z9Io~K>bMLrSPGLi}M&F1x-!By}SeF5u8kh^^1p8vh@P=x+_LFqzdFArvGX~ee3<+=y$O*0fO+v9{gV2 za2)4;j#McD*JzpyA=2YEn#Fo0(Q-{0seab7dw|XabVZPfDSx_-G6i%@B@NioJq(%s zWwPp-FhK_2Wh<)${m!8{hw=5{tRi+fk3-He!FYu%w+CoMfCBK5NWqgJ518RZ1n;H` ztQx*BK)#K^KiDsy4=mYXaU4Bgo;tfN+7=ju9Kkv^u0EIMAr!?~rR}L~GIB43R!$v2 z7@|U6H2DIR#Y80sxP+!QfS&}Ay{q$9*{k1{!Av21r4geTHGWec1bn~@kqp{3IXZb# zCHf8=5m~gv0YDO;Kr+IHp&(++Q3P!n_P@1RFVaK?K;e$IQ3a|Dnav>t+V`FZ*d|55 zMgoh1&zO6?(r42NBWOkbxLz8il?%X4ii0W={^x`J&(4Y%1Po9FC8E{)&*xB3V9AsP zL{9j7|FVQ+20x;a>RNzjxnqfB0p{RB4tkms!iRmE80^FaM#*Hoh)1a}yD*Y8EZ2xz z6zPiTYq^$QrG7ra{-fWMF*MlF=xxHHy6J}s!zH+WcPd^a%)pLIA{kAm5(u37q!`@3 z6MHL(d(F5Y2<(DOt!TQS+zS&0@k1N#>koM!--4M<^<9+64lC)2iUv_&3ISn1|CZ3l zzs|uJ)V52%^sixnNmal-xJmT3A`8%sCJRss$pXktM^9xmGB6l%_6Qw~j3XJymB>|6 zD`6QSGQA7!AHlzN-0i12?PI*+?DxM?yw!gD|2q4B+dkJAh=>enf5cJSzpMTB!COmJ zd|8xC08JyAvkf<6w$g?!G@;iMEjeIc>fA8{WTh$t-VV6cF03+ds2q@fWCkyxF+Eii#=;N57=D1K7Q(m2HYs*7ZrP|P z&R&cCM~c>I(hi5w#VXh+Z!lY=%JZ!2v-k{Dlf&@+l_fH#|2xP$fp z50=3}Q4NRT!rKowK@#9dGUmMnAgi#Yc2s;~RRZi}e_4DYk9$kQ`}l1Ix$ogN1$Ow> zEoSZkqoxbM_T+9eY7+2Jh&}rGzJHrpxYzdsch;6d-!}Kboo;vuJ$<&ohQ^(ZyJlZ? zCEd!tvh6sXqilPsf8g0)%fx;=W>G%_unWH$Jn~v(JVDzlna$T0Ar96+7ki}nO0|!iUqxXMYl#1cG zJ0^M_IblE-$8ZUr5$=c6QGqv}Mp0bgM`Ioc!4eNXlm_|{Aj?&Ep5~bmBO`c*_Lbk| z`AT@^dSqMngzyaMPb4}(%^)gSJ>l-Fe_+5AE1}HHvB$(lV^FpI$W>sYXHlrH1JBz< z5%6$&in!^2h2WWW@A1R)uQA62&l#xNj#u!2`q)j6(?i6fQce&Jie0NRMM&WHVt~lb z=gIdNVd2{u*i2VCzE?1x<;u98z(7WT!{wF8h&RqwGeWWFpj8x>QNjuT5j;a!DACkT zYey@#uuUNCAC`++{7xnBXF@yP0htxHfn)3wIpMAi9qDbn!|;kb8m9qp%4($@=)&17 zt{U_gB*={E1{$+=@IZt}gs^t(`m|kH9A0O3a{~IW3g_*4D@OMNWYc6HT9O`(f6SH5;mG{UxZ+GvVlO8p{;K!dVmksfC(Lj z%YFdO2WuUSM&a|vwm&*qwU4I5*1wpm(mwsjV0vvCH~p;L_CxF2KwQ`+PR!(H0QOG| z9q1O_aVQpPgeb^NjRFBmtxE3tMCZ}&p@eDU=x$DV`BI6uc!dc*0XgF2*3p^(QqOkq zIu9Ijc(lVI+R#q2pFE4~fhisPDiGuZm!XA|d7V$nU{(L6NPN$>@{J)`_}G`DMzH1`iA!3FG} z$(|OeBhf3QgO11DY21E11E~G8Sk+PVZOmOIeTh2n2M7`7W~~CDo*JjxoAjE3LPMp4 zh7r)Se%GxEuJKIJS&*j0SWN|L6d z+wAn+3YL4Apcn*r zj1lS}cE0)x#V;V}(0mno@nK>Gq&&Zibl=%WO9=@>Wih|X=z$c9b&d-C64FKlsdi3* z>oqzvG@10ZduWX1DC(r>`L&cLK~ePFQl1TlxmdcCb`BHpjndtEwGjNHOzY4j74Q@T zlQXXgV-h4r8@}fm#H8kPFcF#Im5=~holC@}y^19Ggd>2`ekE^H9_QOR{nlflD==Mb zuaxIM?HMO$JlnVQ26kVLn2L&uh~XbOOxwE;0}msPbJ7w505PQG5%5kBr|EfDtUUTc zBQ;VUVR$Muwu&j7M#%s;;+C~bzauC#7yGREzD?=$ZjKPn-yZ-Kr`ck0e4m4OVY2<=a-$Nj0uFl7t$!51k4`Kd%uTgWnt3 z`=jFb6unD4gLD8SQyXEDQH^7jgfAWZl7@g%OkV|IihyW1R_KhWcvetShwe#I`J`H4 zH-eCr4poFa@ggCyJD32)f?A+h+2nfe80swIJz zNGtzF5+>x7zp1zH@$DSt2BJ!k^8{(C5*YsDB-WWEEavYJK=uPYfqvYIrKCs<{^hKs zR`-KX7U3bWcaAiGuP!l@Gb|24341A$!sJsb`zfnooTbw+u3{@Ef?nPfm}EVGQu9-1Ni!&9efE+ zVtkm1nQH|vky-{A67wWvua!aPl8G~jKSgV8*=s)x5Gpv#1T{d=9MN98N<4m?(KrIc z4)!Km+OyXzRsVb>5%${c>TN0ChU~S=(t(Gg*=xrpA4dn;w%3kDKFW!OKwO?MQCsq{ z2l%~R`MBglp@Wy1992HHc*0bs<>R7W?a0T=RmBBJBIILl_4YKrJy!Yn;mPgG$K&Hq zu7|0Jf5`QL2D=97{5&Zd4KN+pv zNMiVN-#;Aw{C(OH__IfAeFC}lj^121m5DW$(O4@S@KL1^(Q83#>uUYWxXs5jM(W+KN#&N~P3- z8I+nj^i|+wF+l|->@6(O*r`LMJKTBAeW&$^;=b_I;hhVFP}U%cu%e$)Zx{1zXzK95 zN$4~VUuskTZBhNrpnaE4`wsC`F5|xnC$Cq!1q$9@vL9{9{{t6yMZ0y2&`#l8o1##m3;Kx|8Z2psDcX;M2;0I_u7>Nz`eF!B@IkCzDXuTXo$DTCodu$)WV_(j(v-vfLU+ru7;oW!bCogN&9`E$(ORs1)y`tcoRxNR5 zUs^JqmWu2Ir=>hKn@3AU(o$fkw4^*bQTEK#t3kUFV~OY)I0km{hIs;v1vL0XfF~?h zJg*P-5tAJwpx28490`GAZuk2G;{ChW7k2|npD-;te{(N^f5Uf1@Q;o=DSAFOwG{0G zF_WO?K}(P#wA#@eg)&H*MiaV`DvLE&|2ZZ;9Fc3uARZ!znYt6J=Y=xieI9|!0B|@< z=J`}WH792Ma%xO`wzO}&2CBr;wDDTc3ArD(5ejY%N6Q4wTaO0-8*2S@tmaCHeDGcS zLN*u^pFOoWy1!05__^#wx(c0PJb3&Lsh5q|cTQlp#f)d3mU>M5@0jr(A&BhXY6HzZ z8q+^xt{Cr8@yD_8;CIX{hRZ;;Eg|9KQqh0jVu+|?k3W&*mxJi%9gG3Tl8lEv#!>)i z07$pb#UioZwp;!ZB6p4y1D*jG1J{FcL)6d;-sKoX;0Q!83FHHs=&PsE;6&Hbu3%aa zWhVmcZEPtYrxt}lHTVqJ`0+Bha%=wH2@y#v%SV|0d~~K0rYeYk0WtIiF=Vg8qAo~H z;@IfE#gnj1Dv{o@Ik*jrKI?-#t>p?fh)zSUz!DAqN{tH3Sgz-ma`}TO_+3{-xOK5F z>x$l;7u~z#>))o7W9;9HTaVVizQ@$R+u2|{{af`%r+@2Hq<^>Igp~iTfBTb0KQGGR63azmn5$7@k@s2o8}FT{aaZuyq1({sVTClp5@m8h{7mwE+p};Cb0b^_$4R<`U4{MMkyU1Vlcg z`sz!en%$caWJN_!Z4}{1HzIOD0Af_UtCK{-Mie~l#}+*G#};G^*)f6|8YOj^d32X~ zV)ZfB<840QsNTf<)>v#L-Z*oF;l)L-AjYzUcp1X#|KnHRZoP+nS2fuKszIn&ccKDJ;Ja7X@6ru0lCZD+|Q_%a7hjG*bvN5 zWBJV)lz}j=2%eWqa$$Ut+B;KB{1|HQ!1i&;cNRkNH-@^o!HnOe@y%TxAx^Qz;;xSm zXY>}{{107vgl8WfL=5!L&i+N&pcv3P9#;#|-Rj1&$JQ-x^M%+Z5na3sv2x6vi!PgT zTxGq@g~oz^u!y&Lpi%WJ^)%e5PG=7sv33G~Q2ZXE`;MsFj|VN*hTm*de+IgB#M<3P z^)?~nDG>hO%ords9j{A41bXoJDF2{@%9i0b-(6mQit*YE3jdayr<8ZWy_*#NE%%p| zn7;SgB;e|nveTe<(!Hymsc7yo4JV*|6Tz@I%E8G|(lmjPw?Wd;IE$Cz`XD4oJre!~&XN_92PzxR)G8#YAvkG@@PXcGjUtM89vwH@1oB_X9W*0HGQ02hnbtn`oC%jkby2<_|LEDjHp^a-tD~s+_$8@EmCQXb*ct!nWRjSdw)rX;8`8>f0GA>7|l1 zm2_1}N0r2>o7Lz2WNRUsSS0B?DD*zDgcfNrp;%Dw(5_ z2USugN#y(y0As$$KFTN$26+nq;=@jt77BSv_~I;J7JnUKs$2 zZgJyPowI?3(WwX31{QBaw#VxJsC)BX59~&7OZO>tfv#*5W%$#;*>d;=>(}I_77w~N z{<2z60!R!yVY#J+8ql|aH(00R2I~e7Y)`}urk)Ud30Y7pNm2!nqL*T$)aRJ4Nc zLrzM(tGY9`u9(McIeX~01Ete$BVKEIX%3yvMvKgN%uxV}>yfQo%>lgj`ANHb7zubqVH1#k&Z^C@Y@4r@}S|a z!;~j3*c}&bf|@*;qj3;u7sz>7Je%RTn{}aS;aXa33xp~6SBGGEWSQKV+reWcf>`%Z zAbMLmO?f@g%z;D?1amlRe3nZZ;N^LX(NNX;@}z*+1*ng)J-=gqUgL>lnGNr9`86tY zG){9!ZK-I^F2jwc2xjx}J%(0|$Gpr6RHYEPOhrPFH#hSo#tB!08|T9l*~zH6N$N}P zz>zj#>rcC$2kg|CQr!%$;go@0tmM-b<t@|Lt~(lIs6Frz^*DMUTqIHt!&Skagu3S}A-3uv!3*5Q z3gl@bp6ockP^Rx8N#>|zBW}nHOaNuJvA$uWG*Z11v#FI zu>qjvjI#i_-HR2XPmX-jffzW;&urK`#5}kXm~1hsHp#f_fCQ65UKkBQIM$!ZG6#3Q zd7dBw8?rpvinMrbN3gy^JsfylkB)x|_7;}0NK9CO@;h}ZQ z2mkzFGCW4Fxq2bREu#r}wGSj9Yoal40ebm1taUn+a8zYM?PVRz-w6V$2jUZh5h(zL zGRr8gO~oQb=RnET2c>r#93Wr^^=vX#uFHj%=t&Xbx{vCsCF@$4Q+(Mfx?w7@>xz3Iq3~Q1zzM&QfYB&(I*f+n?D=vpkY;G{ zfde#*l1RS5d~G+Ef|WA`4$1|>0gR=Rf<(~@{y1v(h!}W;n|VJP!*BpmkyIW)SY^wb z=b%8qLj`evjqu;q{{iD!nD|Gm=ET@T`uy$l$qenEk0M&sGCM;s=NZ;ow4>L2in+W~ z%0JT$+{sS$3Pqh+{6-$0`t70`6RARU<5>hI#B36Oh`_`T5S^^w@B|E?0_Y0wLdxbS z=hza|fiCB<%O=OCC`1*=0I4c65Mscdr3oT~S^H9qZ6Z(z!`i_VrhrI6eP%R<;i*$& zm|7~cw_&FRt4Jq;QJDay?1=z3z5wpG}nM;|% z#AGVSgQVvpu(p_=Ab0DT`jo(1C(pDZAefY>g21!)XR;Pqs)k`8<)oMMw4o#0E>S?b zDhPEc}hmz-LNiWsqv7 zYXX=jO>qEaD6u*O$2YkQA%O_E{1ht~#Ie8$_!OK93^6yJWCpaC2e{ag97$JXRuE3m zWC@|SN|4KVV^5MXCjn0$kg&jsit7m{Dki*zION<~js*l{g@sdzCpXNgy4QyLrkpVJ z{FOu_$Igw-V+TKlrbvYns2CX!yngP^`ny@@n(^%&d&g`x-3RyK=&8Yw}I*B+eS<7;#`v_Snexjb1-ZWwHLZW&}|Z6aC;7P+JX zDbcUc4W=fJ>*b~DOTO{iRF5)lXVjb!etZ&7G+uMAyQT;5Q3auM3|JXIV^JQxiFBlt`2N4FwOib5| zN$uppYBK~yX!qJh?~^^lR!+q3wF)+Z0U(8i8pWVv0~@>5YG@P=Jdg|=Vv;Y1faFhH z$kuOw+5>$8li=wTql%{+;wc>mA*rXHM%6`l3M1Y;_@&3UpOvxC9$d)-(_uRFFsfy-!+HRa zy>Bd7g1Xiuo^&xj^)7=RIGm1Movhz`_>{6c@V8glc>F!R>_+_USyoJ$QGqs&X8@uR z@AfrgU5v{mdMpEFvYd1Hbfa1hqp?N^>jLx zzWL%XQ)+}}I3eNo)t9V;>Jon-+}gpfXzC-7t;2ZHgC5w7rH}|2ke}M-AS)SAwzd@$ z9j^>nlvx2fXls8 zEmY?l907mrL9RJ}G!%o!nzG03JsfY$oepgcYm3xnRGm#gmFZQM;#eyI90(4?V>9&A zScl>45OyvVK2GN}=G+P=G=Zdj0~B{4Z;BadGPB;>>3VdI~VK6aa zf^QIR(U^1s0(GN#@F=!aG+E&IK{q@ejsZxt1YYFQ28ce6O=EU8U0_Qwx)T4%GFud= zz&)7Wu|LW+LG5wzJ0bBp@=O5~b8?NymobVZb5(?cwpqWXM%IBQRS-p$?aFxZz8 zN+52sbj7tTSraa>pb*!F3p#!^5vQFKf;g!KMWhx7F^;HiA#VV?^=tx7J|URGTvL8y zS|GnM*76%ueWaXJN%>YjvhuyV_|}w zC);We3`6N8(jOu!n(}@;N&^>ugZ@-DaarG(--B+#$|gnv7}cZk*KPfZQ!P^J<}b~< z@z+j&@z*PY|D@Nh;mZ>_5xck(W>;Io(>3?OpeG)udo?>eoXJAqJxSw_G`Z z)3LLOV5#JY;)~6-C3rWx$;&JN~!M2|BRG|Q6a)t?t(HaXB z;}O%BY75`v?2A4nDgIPyt0zrq%k^ldHgTrZ)jRdAgukP%Dga>^d+i$~j?!#rruiM% z&Exwr@U5t%NcM?A#@V0zl*mZo*5Aq|hO8M?1C{DYlpkE5`JZvgpHo6y@{m7_!9N3kI`&l9+hLw34vS(@PP^6^V`w-UuzY`km+OeNwy9N2KmV*yP zRt)5ThOX+^CJiYAqVlgXd{;j=n(w5NBk~=aYm4uQve3NeZ*5QzU6~;((1tkv>DXx_ z?bImwPe+|<9^l8>6Mxd?J#4qx@>=L^5D+fpK~9y-BvOL(@J+kBP9Nz6S&fO=lbz-Xts8< zgjHS`*$?jiDUp364f+^lJ1Y{hgz)`GY+mgAu>Aa=>D1lS*fGr$7a>xcDb0sl{@+eG zO4xj56Ma=i)hsolj7K%9BxFWYLG^Nay6XP$d-V_AQ%^j!dQ%6FZ;y7MnpXF#p|lg= z7KPil+*JpsCips13eyaY=-BiBBwl~2j@8($A=c0e;8}Z*3u0lr1ONCbA^zYC)EO(A}4)gW8AY#@M`0jIdZ(-(s(uL)k5Z|VpSGK~h>!Rd*8y2k8 zas)wt6jOnhJ~^; z){N@DIQ*i$F_`UA{m5|o5jh4^xWI!h?NMFY+k#CMwBmRvl*{)F8 z#BjFq*|AcC?yHdg7%V{jRO%~(K(&Jtj9Hxh*X=(gPM+Nx+q_4dccFRDke{^qpP_lU zKj{sF10-_l<`~e9sTtS=L>*(+7i4)@a(%7ZDzzc%C6`2egrdUXlbdl^v=1Tuku?JSyA;FH)6*8?r zklMu__%gEbk`>xW3v<^^yPdab)T$pwO%A`J#vPKXTyB(9(ni*N=rXTN8GdKw*s$h0x*u(z(JrIC39@%;x z)2MSmk*?CgoSGA;z6LTWfkP0f1#ge9CBQv?wt1TbjO452VwGH|l52FOwbq#mqqrmQW3pa!WCyrf{A&>uTc+aQi%h+5Y+7 zKk_`sFJ5j9A^<2QWRnRQ=-z?M{{7}3+C9(l=fF<}@sm#cq_f+7i68s3rEGz(yxiJ9 zfpx4Vs>AUpavy@16x9mHrHpMrI9FWU>tGsqFGdmV-JwdIa2osXuSInM`K!}d7a%Ah z;)__QICvH&HwIb}X z#7NuEFH!AdfOP;Gc8_nFWe|X3>>ZyvH?Wx1!CJ>gKG(qQ%D%DRZQ^!(tlII|X6zos zc@^s)m-8ylM7CeqPhKB>6?nWlN0AY*4?K%g~ED8;n4t|1k za)z+2T>aJuULbGnyIDBqo%ca!C3q1tJ}0U10cA`A4l%|+E`d^Uuw9I~_3R{Q--FbN zy8>Q4xT@X)PEG02<`a>4>(Nw-g?EJQ^aSOVy7)cl|1a85=|X@qs9@XbB>!jzhWQ4BY zy%kO5t}E|q`oJVbu*e7;T4Z!O_PRC%Fm?YJVW1N8WK?~?#y8W&d%F30#q2+Ahm$GJ zjNfd&5!dPNS~!g180^&#_Hd79~;nrg;>!|LFg0^d_r=-4K+E^hsYILNGJwi&;U7^~H2KrlaVYXJBxlw{A) zeE{#ny+!wZ278kihA{XfZrG{AEC-|5`yLDtF14P|JSBmF=zu-^Z$Ra%Xi6k8gaL4W zuHG+C0Sei9E14OUOZexGU|NCY&K_3l=>UDzDEk#~v)M{yoO-Tl-G`TJBX=wyieGjt zU{@akz(4k6t;hbHDJz2KumjnlJtiCoNHN5BX7D_>n|#$$gc>N%WXHhiAIJx*BUt!^=@ zg%=_mQ~@E}P_-mGP<+Ty6G1wM&}>UIMh@DWJ1K@2nt@c zXt_>*By@+=q(BO~0~uxiY`iijGjQ#<hZ=_;rqt9&PW5^h%4Tvk;Q%qWWmjvxE zhOFFWRJ|%cCPR2~N|$?hHrBB7Oi+w5Z@kLa7jiY5qgJ&B1LE;_kdNY^_3g(w|L)h( z6aJeWJi+bzMs8d@;K5n`SSz2Ea`+T?!{rmavU>EqDWX4!vGoXT;5#^vfQW$YyE1y-xDQzY4-s#18{UY#&h$4C4F zFtp=Ct;c|6-&8F8RjiVcD*4SCPb)LZ@qr54CLREA;=%>&FMys|GDEjSvW zl9}%SIg$4zIShx2^Rm%=M{EX6<#`OaHL9zzd`uEZ6`OcqRxO+Tgqqd~f)i)<!qx0k5!b}812A@&)kN_0x8r(-RI@RBM93XJEHF_BZkk}0e zwxwXwQ3p#dE^sgUXnzqz;jitbtI+8#co89TWBM;AD73oI&J;w34mnym^NR5OVA{$D z(9oh{)j9ie?2^d6n-EB16w7>W62zDnxA=tyTonhwaBM}Kq}zRtTHO9q+D|hKf^->Wi3jc|5M%Odiy~ENRe%Ms=nx{1PBxC6u8|*CEB3 zaHrB@o~}d+6u`Xh%!ixs;(;!Z_X#s`8wTeWz%u(|`XCS)084?G3~L!ev3v!NOk1=P zc7;FXDJJOqQr&k>L1+;&rl?*zrU#{Rbp?JxYakGaEjH{y5K0)U(iZ$mf{fe-!#WWw zXGg<9zb(v>C(SL?TPo)1-&GQQf}tqFXTi5LizZc58sDKNR~pthNTZ`Q8HyX?LLVl4 zPI)*!W&GeDl=^X%kM$PZ21l%K3+^2HjyW=<3(NEsNQ?Au6?=~^WUDSL)H`w<|J*X& zl@%ImTMY{<1IN%Ly_h5mv*C*ljI<);^kNcnIxsm1?%YPhy89^Av7)7@=!lhknsgMH zcEEfV$}TD8ll{u~0FW|ZtiX=JBi zVNLdcOykf?`ca>dmy5JNb(y}DN~D!@ov`8_G6wAPl#w^{nxbUo<+8thQh6@=^0Nrk z3`)d2@)^tvcz;oUzg=WJwWY~ySwmr{WUuMliTl23xLIG(B!)k?g7AR-(gi-SUq2l2 zBkX71D*R_u`Ir?0Cs{G07Rz#x+MDL{bbzp(rvm8Fq|g?|NvdNYs3mJByk=Ds9@v*3 z`A-vDe82U$uv{{4#h1vpc~vl}s|cD^)*&5t-92^!TT`uQ3Px*vnFA*a7}jZcI<}_1 zhyg&F;^-L5*Asc-@Wy6qOXimt!NvGSG{^{Mt&6;Bb{$DGi9p0RQihpXI7zdNstn!_ zdv~LnVPsJM!R%P5t8!3S0IS&=bduk-%_}ZH97LIXQs5F=t-f{ky`Mrk;RH}jQe02H zC1P+slPEEWiyYWGpsZ)=j~0W*@=kxn>$pHVG#NI^BL+whM$7vQP7?I#!-%|J#GCO5 z$JRsW`$m zL(rS-@qJ?ELK?~y5>9XxI4XxD0b;OsBfvbGqrTRpRLfL23iCSzhsjUu_6MC5!5BBZ zTd+b-V%&o-#_~b^A#K)jMI{f*KQpJ~)y}|-4|AN!INxgK7{j{=**#W4hfWl1lsLm+ zVVwxcly5u+VFwG=0|WaE!#j!fB4cMtzD87zjF~-$R(*#N>ENa?4{iWsn?5h^^cM_=CZ!+*8GW6{c@Mw>1UblHw+;E$GG# zeHgk_!9TV!Q&g5<-~H`dIpEzh?HfOFyzM|qp6RzI)^k@ia>{?}6VEJJI=cXio@2_Wr z&7myh%n%5aTKUq^uK9+W$ss+^qAI0pf`_vh?$Jay1NRYLXfaMm{A`~mdi=@#-7sMm zEW*1&>__tCZY`hU@wxNDJ_r0V-MKqwo@jV)gE{X8>aOy4KhfhGY2pl@{z)GHNGxuS zN#&J*-a*Jw;7=P4AWiH3B6#mya7qlty|j=^_Z9`Ffgs$VS>Jwp+wLF0$(sV>`HJ(> zt|$xVM5uw>O*4}UaRc04%n)*c$Sq_Xp{3}!wwpzK#fU93EOBGsjdlY66nO~ox| zPaI$S8hqku9=?@<1x^OYG|9kGv-_(IfqZ_o2Cn)QX<$I?!VLv=hW)F@Cohi}YEkqJe}6YUe=o*=Xgf@kf0e#=zuZiPvA$({2nVnMveS{c!{?EaClI2 zqEX$SIZ?3KpPW>A===vJPByBR0Wbg0+LwSwRb*`^kk$riIw+BVpp8ZiE*KOv5s*fM z+-M^~Q6r+nQ86lx5fVT}Oh^Z4o2#gxxQ)0oii(PW%VeQ(!IOM9!`Js~9rNW9h)_k>WauR=qScbGSpzQPE zNu`HYR^I01)vyZirM4ClQwK3bqZ5oXD&Yj7zg&DMxQlv;c5CU_B!DOI0Rk?E3PAW( zpzLO?_~7cofGCHlTM-OIs0H?gIKGTirIJN+)ihI6kR3uPMl(2o2Wa|Eb>|i?;Lb5q z#)3`&jt0tN8$^3UZ}a7Cyr_!PgpY>eY^hiX3CSc((9aI%c`>?Z|IAU^KQondfPbb^ zD5sxhoLR`EBuqReo@s{DHN5C{Sf`yc?pd8ZUlyvN{{(_UVmzqE z$j-xJ5Zkfc0ZyrQNZL7@mobn4rcK=^Nu~{mHQXEZ+&o356*#uunfp68K&N8^j?k4~ zcScQ)Tjf=mPs~-vjMxPv7>w4gB7()a62K4j-be5YKFvaF0W-SqCFr(i$a~Hrk*|1H z3+<`>;4Q+3&p$N5LqLmH4uK?o_(L6lqhE;2d{&nsDCTiG(7Dp z2C)o!Wea~2fdRyrx2Q)X;F1a=vK#pfYb1GgmG-%o2(!lV#kYRguf(%mLy@%QipIqm%RAYHm{ zdnarGlLBSG;y~A5og1j@zUw54&u-6*8=)?<{WET7Mqp(H(OK89MaD08*nsPsaIJ*1 zisv|)ErGW0ZQiXQdXXzjGHv!oH7f*|jkcT?KvZ2S*dI+MF>$pitROyQiX)f;L`)pv z6HxOuYGD?3sJ{p^1wa9Fdy`Z@&(y3Z=J5`^79#?q3G+O2^bcYw>|C(7?)HH!kND7* z(layL`RiNY{J{rccP6@L**9**^mc1vS_`bU0ITmJ8%psgjv416W5_;D;V?o~vhCxN z#vPddewkY$NV*>x;jBW=p8gq!OU{ySkSk=L^Nq>b6PwdeWrgI#g2AqX{WE?AR3UrR zSFj&L_Jv>ZBJYyAuMWmeKIH5#IoBa)z(1o&a$c~hWZTA&eJOSo>_X130|;|Q&J4*3 zqV77%KjRL`c?m8C|1@M@{UP@sl+=B5R7u_MAm%?YndA{X_LY5+(APhMcr7XVr+?OH zDR$*LoC8wQ_&bVx+qWe1Uob>R+M^HX%PGUGqnM@7dYl$n;+`@d>is^00>GLJK%#}3g9lGhV zRa5itGB?kKqj>ZvTIx7IZ`1X@JyB+{&Q89as$x+Cc+2$pvKm*Z~r4*03k~hTB!MLRDoDFi7 z2*!kKKS-OuDa4jDN*S}qxz_pa$lkOk#XYQl zVgu|C+!+l{Z(tW8s`al?2J5!>@Xxq{HQ1xR(lv15T>ifyvXCJ<%g{cMY(}0SVS8eC~taHKP%*w2Q1;%nYyDHq8`3ntxG(7fT$Ob(T zn?GPL9M=7q%_OwSIq&=rSohRdHN4_%#Wp zmHc~R+FL$ui)nv7wQZ(lb?R<}_(4H{Sfzx9+MG|k%V>}HMdn@bjQ1sYPjVQ|RrA`c zU(fOV%d@(~a1JUEsVB1j|{a2Zgl^MS2R&AA}wE#WF`YxO3nG=Nki1h?L6_(Q~x-O3+Q301j|f6mcD z0&A!EL*xa=0n#6`+QQajtl(I^;Sa$*IQ83va?mHy{@&U@s&2UK5?<;Q^5Qy@9aWd$ z2(}1)3^e$m>dL5~Fv*sc75W&;%yr&yRL~T_#9Mp}FoSsJF*GtbI-FO-He4UWZk;31 zobC(ZciU5gRzhT>>=pnz}acUodmtYeJ=?w!718jW(=K$OKxXAY%46CKI5 z5?}`Cp}ztn80f)xGK6A}U|I$ITsUVBovngIs>3S#94t@( zw}?Z_x!^IQqP8@zpkCApv)x8Y~*H z2z8J@d@s}C4Ai%Z)&7x@u@D=%rwV&JJ%@^t0i>V!`7&k&fL-=wx|h& zU6>Q)I1zm9dhSCMH8G9qt99k3FI1>82A$7UCl|JX(A^LXcx^Vw(fIuRq}GMif@4JW zUw1Era2l-4w*A>M{+>Z8sM`#NodA3wrWJoYx7%Ak#iIu_yT;1Ze;!kvT3p=|-ZG&R7qSvHU>09)IiPymVOtK55Ark6f z*tzlbyjiz)*SVwp^&Dya%f_^;*>#$~J`*qIuu{+E??A6cedGDiDnfL%XWbJ?sD(oc zpo;>byiqxTheb;S_(P4Pp`VN%e?1qc*}<;5gIDPe-t_>HARWAuKNB51(COeBPc^=H z1g#&9bJ5!AJ_6)9m!*=?S}Zks{&O$TTGl|cVzzqQ^DbiYq!|}69$3fm`_vzIgXQj_ z-go|`*&CIdBB$Ipj{CQ7zbJA4b`W&6c>i{LVdB-EN%)BU(P5Z0l|yj<_CXj{K<^)A zYHE0tJN(r1xq5#H*i)Fy*SH`Th>Bm#zT%2Ejx7<-QY50d|BWO%VC>0IlhTVnEX5a_ z;`4R!`MUVTSCWcDATw0|^x~7G_%){ZFkO5+64gsXs9^y*7^4taed%0|-<{+gESfX) zE>_M7JUK$-@9`;GDF>`I8NwpAr%pm#{xpiGV1WO+$l_0^bKn@d+f_-41n3Y87p7hK1ocJ!Qry+_y z24u}_+>?$Gic$qotaoKm#AdU8eS7^)NLcN8{Q`4)y_ROE-OG`#vR~DDWbhC`z=*?^ zSD-E!@sAuAnzT664%TTO-GO|>nfez~-;|MfaBsrDiV4qQa6{1yCcMCeOLW3}^N{c` z6S^QlRosbRlXi(#O3_D?$3Yk6Q(Fc&90b@Fx|PhM>Z#av(ZNEJ0@*#{$|?|(O(m`- z_t)&6ON0ffNCVJgxVHU2cc9BrM;YRo(!PIYJxS6A3>daB$ijla+zV5R$7HK@39d07zKb90n*sTzF`cItu0suU#@TvCs>%vP=7gLH#qqi8a)1lX(k09lTU43 zzmYkYGH(47pEb_d)K04#Sp6cW7pe81jrs$mH!KSNiCzG+dn2y2MfF^%t2#>d{vnjI z3Ok^gDrAQZA^grxg0|*Rfy|?K@ZR)}Y;S>uSwg;5G_ZQ96*(;atkZldy(i-o_~g6c zo%XRunpLBH98=8whiEkjJIOJnz*O1ltGhKsGQOb`VmHvL07UuVwt^;g?NI{J)VY9Y zCLzLY-2V1NJ2d~55+|5T@{h)ezrL2A09P5|8n5AkZQ{lp)ICQ1;KUq| zYG*>`1}g#~N84WY_P3O8s&e!-mkY62 zg`S3}YJ!*$it`|arVzLetPeQA?q1Y&QyFhNlD0>)N;&VeKbix1LeVTB zqqq>#y`j1{+YE#RGRG^T<}7xX9I6*#mz4#YIP~T#JS)zts<{|MRlbl4VF}pd%vT|#egzP} zK5wR%wr9u7deY!kBm2rkZV~SMh)vRTO@YThlShxH@;rI3z`*36v0TJ*tyT9HcyT4b zTS@Tz;b&ZNeFa;E@q)1k%4Xzy#<$3n#^VmCATeSWB?)yC7XeiLcx(9JNYU&(yzeL+UHyx zefyGwqoa=%9EGF6(HAffT+OS0q~L4vHEq++prxt+B;1}#xi76+#BkpXB=5@PTrJ-} zFO_fu6F`-_K;5Nh;6L61pl(PJ$P{?|Gv&Izl>LhwnJw%;3BLo>5KX}_8Xo0c!HK{t zKy?O#(G9|(eqp{CFC_*H7;14G+X(a)`CtBb#>8n>{hI1a86DeUja9b>^k1XtzYLX? zL~!RN!e;!>6$SnC*5G)Bs#PQEo2#H0vA%rg(ImAfK{f&p4A>nlaZ^Abejlh)D#U_G zgpH9QJ8NJ`{g$fJMnoFXTqyEhd?B+4u5^|}UpmQFPYa#FKlt8EbUh%GQ^`T;@1Auj zee?>4(nF6XrSY{n@%8uR&ey}_tC|)8%I{9_K^ne)LyO>nK*9zfz6*$Naj~Iu`APUD zj2hL%c?NOY0Netr{xA<^aPc`4FTAOA+ghvl_K0xR9k_kFulpCIFAIOTcQt z&!T5s?ESvX!B6|6L{7#cv^@6j-QZ{P)O7g(LxnM}L-c>4<5uq;uO33>5P;>`7dtc$ zMS%L_IHMTujwkp46M`p22~kB--66+3ont;8@lVAM$!r+AbPly@7T~%zMN~w9Q|LGO z@>JRpjC=#%0kHH9e6)}S2!Q<#`3rBNtJ}2W3^34{u4Q);fQi?)(f&=lZ6C~zW84ll zK)^euk(8f=q*^)7*f)a@APExkY71(L4SIV$mRk(3PAgEN67E;l5UTq=G}-wS*{ zB*BOElSI=Fx*k9*R{T44A{vT6%2rbA-*f*n)WMi!kqB+~zh0PR1|PfWzs^yKN8A0! zu?PPj{m1+|3BI=bj|emN9}Tt9fB($)wEhTEf53Mme>|lj_qY;!p-(#JRg(_UQ~6SD z%7YbqZ`%otN;foQIh)HzSHZNd9;}7M_FO09KI~EqGhhy6RGn|pb130n7#_67!8PS1 zT_HqEAKWJ57O)~{;~zV98%V<27t*5WYqn`w5pIX(g@k2^8dOObSnX=KDwW>F;3o_# z696;%3czV1V{VGszMu~wJgc(d{_m8hCYj#BT>uGM*Udn zXh^LeeffF^d*;?Tk99tu&Y#t&4_%)?>zjW7FXTt++u!uuVkO3;0FIcYP$TEeyP-<0Ko<4?J@9z^zB^3t(as1%s*m3jrRGk`_APfxeT*&?;uJ-ig4H z(@eHH0mbfv?WfLOOkSP_rdTuF+Z(V%JtIr#n5yQDwuY6v^%pFv^&DpssC&GeZ6;lZmRh|q~D~yw^zBh z_WU#dO-W6g(~t)-<-Zb>*UajHT*AehmjRSc+ z|Grlif)pQZluI6gjX7{Rq8C8$9)BZO7T) z=lwHhY5Jw>m;@y1XxMF5G-u8nl7Q-mNBj`PXvY>rKGQM+OrmwX)H(o`j>k2pWyL}x$cKdf;-lgq&D=uf940fg*O6n9)ew6##}>48G(Ku~0Nmho4=3~>1Crukoh?LWxtwc8$0fL^OuGk> z0f?4hps|Ry`u==9@DwnAKJ!7{p#EN{-yh~RUJ@*1_v$?kBM0MpKSw+CiPr5r%wNA! zUcjQ^b~+j*3s(3L6PnI9lIJ{rJmRbU%TDi0i$LT7k?z6(5Eo<2$(fDd zxL#LY47f2>E)`#;a2Ha~aZ}$H%`M)2W-6wb0Sk~!z7B9-?OuntWe$;4em`D*0n@P= ztjFOVl3^;NHEMvLx$4_)$vtv&8BIHNu3D9nVXj)5^6nN$tM=BET*`j~n7&8ya&J1n z|Aot7b(_m+1C`MRDq}nfwJiS$IL@AeVmN}y^|#0-R#!O5i!sB?$dJPI-R3)7pVL`$ z{j*NabUuf`fY0A$s3_#irJBEf6iUEni!*~ZkdzfT=<1j-ZjU@(YBFaEVLvZ|RKV^2 zTlZ(WJ(n-C-}idSXO2KA!hYfkCIC**^8)Br1OnmoJ)Bs%?Q=PLulH&Oh*a|6J&6tC zR$;F7!q~}GXPv9z3lJ0t2t6+l-&^k#so=qonV3v7KCtK)T)E3sL=A;cl+QPKL$+u0 zg&pOLn|g`OfUBae1wy0aBVkU3_oe@)Vg&Z#kAO%_pj-@L6ZISzxur!$z^G@!RMEB< z@qySM_Ltnnpuo9mR*vSbGRRB0ME^)BM5pL{dZ*f4H7+fmELn`rvxfSY4K<=PC{OK3 zCkkWvkV|(I7Go*;)fN2`&=J;0e>!j&jGZE~ke)R*#$=7RwPh$U(*hO4f8viMo$y=k(N~vV7DolCbbJPi}h9K5ra-S}L!Xl~XTSH@1fQrs|Q%O`>B6(Z>qqz^-nj-`y?`P6oXV8+D%LLnJ z-|k4>eI2#rNid+~bPWs>DJ}!7j0LE8EZ2NE46Gln8v~ao4Fgr@R*f?1|IiDl{?}Iz zHLAZF0yP?t+7olbIGg7NYW*tA(@r&<)IU!Rk;vy{@eXsjh*7Kz8ik6iq+~+e84zEIQ1Hffk|14^rlsPxzdFB-*;&}p45&4YgIYBsewP!LuW~#?< zovtb`$Kw3PjrcRUH(rNcBauC$K1{Ot1Hhl!@T(5k69l0@p5c=i*3f034r^FK97lX7 zBN0=Ex(AbrGpJVGlU{uLL>6CnvP?cNL(w0RfTE9nkyP|B7QHyV=x0*&Ze0|h_&z|w zYR^N3Cg4GL7cmL1vPy(F^t=yqzR!^mH3|DM;SMC+ViI;TOpk%es$n92-IvNzY4{c= zb*emz%wfJZlFUSwz)(jnm_fAQ)nHBREQlX0F0K7vCN*OGYAY}z63CW@LoP`^Nb>z zmG2CIC<%&TcoS_1^NyjYMn2Ee8=4q1doI4ed>K>MG@)r3#TN0^_WbQ`GaUr